public final class ClassParser extends Object
Constructor and Description |
---|
ClassParser(InputStream inputStream)
Parse class from the given stream.
|
Modifier and Type | Method and Description |
---|---|
JavaClass |
parse()
Parse the given Java class file and return an object that represents
the contained data, i.e., constants, methods, fields and commands.
|
public ClassParser(InputStream inputStream)
inputStream
- Input streampublic JavaClass parse() throws IOException, ClassFormatException
IOException
- If an I/O occurs reading the byte codeClassFormatException
- If the byte code is invalidCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.