org.objectweb.proactive.core.rmi
Class FileProcess

java.lang.Object
  extended byorg.objectweb.proactive.core.rmi.FileProcess

public class FileProcess
extends java.lang.Object

Author:
vlegrand

Field Summary
protected  RequestInfo info
           
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
FileProcess(java.lang.String paths, RequestInfo info)
           
 
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
 

Field Detail

logger

protected static org.apache.log4j.Logger logger

info

protected RequestInfo info
Constructor Detail

FileProcess

public FileProcess(java.lang.String paths,
                   RequestInfo info)
Method Detail

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 2001-2005 INRIA All Rights Reserved.