gnu.bytecode
Class ClassFileInput
DataInputStream
gnu.bytecode.ClassFileInput
public class ClassFileInput
extends DataInputStream
Class to read a ClassType from a DataInputStream (.class file).
ClassFileInput
public ClassFileInput(InputStream str)
throws IOException
ClassFileInput
public ClassFileInput(ClassType ctype,
InputStream str)
throws IOException,
ClassFormatError
readAttribute
public Attribute readAttribute(String name,
int length,
AttrContainer container)
throws IOException
readAttributes
public int readAttributes(AttrContainer container)
throws IOException
readClassInfo
public void readClassInfo()
throws IOException
readClassType
public static ClassType readClassType(InputStream str)
throws IOException,
ClassFormatError
Read a class (in .class format) from an InputStream.
- A new ClassType object representing the class that was read.
readConstants
public ConstantPool readConstants()
throws IOException
readFields
public void readFields()
throws IOException
readHeader
public boolean readHeader()
throws IOException
readMethods
public void readMethods()
throws IOException
skipAttribute
public final void skipAttribute(int length)
throws IOException