|
ej-technologies | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.gjt.jclasslib.io.ClassFileReader
Converts class files to a class file structure ClassFile as defined in org.gjt.jclasslib.structures.
| Method Summary | |
static void |
main(String[] args)
Test method. |
static ClassFile |
readFromClassPath(String[] classPath,
String packageName,
String className)
Looks up a class file in the specified class path and converts it to a ClassFile structure. |
static ClassFile |
readFromFile(File file)
Converts a class file to a ClassFile structure. |
static ClassFile |
readFromInputStream(InputStream is)
Converts a class file to a ClassFile structure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ClassFile readFromClassPath(String[] classPath,
String packageName,
String className)
throws InvalidByteCodeException,
IOException
classPath - the class path from which to read the ClassFile structurepackageName - the name of the package in which the class residesclassName - the simple name of the class
InvalidByteCodeException - if the code is invalid
IOException - if an exception occurs while reading the file
public static ClassFile readFromFile(File file)
throws InvalidByteCodeException,
IOException
file - the file from which to read the ClassFile structure
InvalidByteCodeException - if the code is invalid
IOException - if an exception occurs while reading the file
public static ClassFile readFromInputStream(InputStream is)
throws InvalidByteCodeException,
IOException
is - the input stream from which to read the
ClassFile structure
InvalidByteCodeException - if the code is invalid
IOException - if an exception occurs while reading from
the input stream
public static void main(String[] args)
throws Exception
args - arguments
Exception
|
ej-technologies | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||