org.objectweb.proactive.core.rmi
Class FileProcess
java.lang.Object
org.objectweb.proactive.core.rmi.FileProcess
- public class FileProcess
- extends java.lang.Object
- Author:
- vlegrand
Method Summary |
byte[] |
getBytes()
Returns an array of bytes containing the bytecodes for
the class represented by the argument path.
|
static byte[] |
getBytesFromResource(java.lang.String path)
Returns an array of bytes containing the bytecodes for
the class represented by the argument path.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static org.apache.log4j.Logger logger
info
protected RequestInfo info
FileProcess
public FileProcess(java.lang.String paths,
RequestInfo info)
getBytes
public byte[] getBytes()
throws java.lang.ClassNotFoundException
- Returns an array of bytes containing the bytecodes for
the class represented by the argument path.
The path is a dot separated class name with
the ".class" extension removed.
- Returns:
- the bytecodes for the class
- Throws:
java.lang.ClassNotFoundException
- if the class corresponding
to path could not be loaded.
getBytesFromResource
public static byte[] getBytesFromResource(java.lang.String path)
throws java.io.IOException
- Returns an array of bytes containing the bytecodes for
the class represented by the argument path.
The path is a dot separated class name with
the ".class" extension removed.
- Parameters:
path
- the fqn of the class
- Returns:
- the bytecodes for the class
- Throws:
java.io.IOException
- if the class cannot be read
Copyright ? April 2005 INRIA All Rights Reserved.