public final class ClassParser
extends java.lang.Object
Constructor and Description |
---|
ClassParser(java.io.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(java.io.InputStream inputStream)
inputStream
- Input streampublic JavaClass parse() throws java.io.IOException, ClassFormatException
java.io.IOException
- If an I/O occurs reading the byte codeClassFormatException
- If the byte code is invalidCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.