|
ej-technologies | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gjt.jclasslib.io.ClassFileReader
public class ClassFileReader
Converts class files to a class file structure ClassFile as defined in org.gjt.jclasslib.structures.
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Test method. |
static ClassFile |
readFromClassPath(java.lang.String[] classPath,
java.lang.String packageName,
java.lang.String className)
Looks up a class file in the specified class path and converts it to a ClassFile structure. |
static ClassFile |
readFromFile(java.io.File file)
Converts a class file to a ClassFile structure. |
static ClassFile |
readFromInputStream(java.io.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(java.lang.String[] classPath,
java.lang.String packageName,
java.lang.String className)
throws InvalidByteCodeException,
java.io.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
java.io.IOException - if an exception occurs while reading the file
public static ClassFile readFromFile(java.io.File file)
throws InvalidByteCodeException,
java.io.IOException
file - the file from which to read the ClassFile structure
InvalidByteCodeException - if the code is invalid
java.io.IOException - if an exception occurs while reading the file
public static ClassFile readFromInputStream(java.io.InputStream is)
throws InvalidByteCodeException,
java.io.IOException
is - the input stream from which to read the
ClassFile structure
InvalidByteCodeException - if the code is invalid
java.io.IOException - if an exception occurs while reading from
the input stream
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - arguments
java.lang.Exception
|
ej-technologies | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||