|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jreversepro.parser.JClassParser
| Field Summary |
| Fields inherited from interface jreversepro.common.AppConstants |
DECOMPILE_FLAG, FONT, GPL_INFO, L_AND_F, MAGIC, PROP_FILE, PROP_HEADING, TITLE, VERSION, XPOS, XSIZE, YPOS, YSIZE |
| Constructor Summary | |
JClassParser()
|
|
| Method Summary | |
JClassInfo |
getClassInfo()
|
JConstantPool |
getCpInfo()
|
void |
parse(byte[] bytes)
Parses the given byte array and creates the ClassInfo and ConstantPool objects. |
void |
parse(java.io.ByteArrayInputStream is,
java.lang.String pathToClass)
Parses the given file and creates the ClassInfo and ConstantPool objects. |
void |
parse(java.io.File aFile)
Parses the given file and creates the ClassInfo and ConstantPool objects. |
void |
parse(java.io.InputStream is,
int length,
java.lang.String pathToClass)
Parses the given file and creates the ClassInfo and ConstantPool objects. |
void |
parse(java.net.URL url)
Parses a class file at the other side of a URL and creates the ClassInfo and ConstantPool objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JClassParser()
| Method Detail |
public void parse(byte[] bytes)
throws java.io.IOException,
ClassParserException
bytes - byte array to be parsed.
ClassParserException - Thrown if class file not in desired format.
java.io.IOException - Thrown if error in stream of bytes containing the
class file.
public void parse(java.net.URL url)
throws java.io.IOException,
ClassParserException
url - a url pointing to a class file to be parsed.
ClassParserException - Thrown if class file not in desired format.
java.io.IOException - Thrown if error in stream of bytes containing the
class file.
public void parse(java.io.File aFile)
throws java.io.IOException,
ClassParserException
aFile - class file to be parsed.
ClassParserException - Thrown if class file not in desired format.
java.io.IOException - Thrown if error in stream of bytes containing the
class file.
public void parse(java.io.InputStream is,
int length,
java.lang.String pathToClass)
throws java.io.IOException,
ClassParserException
is - InputStream from which bytes are taken.length - Length of the bytecode stream.pathToClass - path to class.
ClassParserException - Thrown if class file not in desired format.
java.io.IOException - Thrown if error in stream of bytes containing the
class file.
public void parse(java.io.ByteArrayInputStream is,
java.lang.String pathToClass)
throws java.io.IOException,
ClassParserException
is - InputStream containing the bytes.pathToClass - path to the class.
ClassParserException - Thrown if class file not in desired format.
java.io.IOException - Thrown if error in stream of bytes containing the
class file.public final JConstantPool getCpInfo()
public final JClassInfo getClassInfo()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||