public class ClassFileInput
extends java.io.DataInputStream
Constructor and Description |
---|
ClassFileInput(ClassType ctype,
java.io.InputStream str) |
ClassFileInput(java.io.InputStream str) |
Modifier and Type | Method and Description |
---|---|
Attribute |
readAttribute(java.lang.String name,
int length,
AttrContainer container) |
int |
readAttributes(AttrContainer container) |
void |
readClassInfo() |
static ClassType |
readClassType(java.io.InputStream str)
Read a class (in .class format) from an InputStream.
|
ConstantPool |
readConstants() |
void |
readFields() |
void |
readFormatVersion() |
boolean |
readHeader() |
void |
readMethods() |
void |
skipAttribute(int length) |
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
public ClassFileInput(java.io.InputStream str) throws java.io.IOException
java.io.IOException
public ClassFileInput(ClassType ctype, java.io.InputStream str) throws java.io.IOException, java.lang.ClassFormatError
java.io.IOException
java.lang.ClassFormatError
public static ClassType readClassType(java.io.InputStream str) throws java.io.IOException, java.lang.ClassFormatError
java.io.IOException
java.lang.ClassFormatError
public boolean readHeader() throws java.io.IOException
java.io.IOException
public void readFormatVersion() throws java.io.IOException
java.io.IOException
public ConstantPool readConstants() throws java.io.IOException
java.io.IOException
public void readClassInfo() throws java.io.IOException
java.io.IOException
public int readAttributes(AttrContainer container) throws java.io.IOException
java.io.IOException
public final void skipAttribute(int length) throws java.io.IOException
java.io.IOException
public Attribute readAttribute(java.lang.String name, int length, AttrContainer container) throws java.io.IOException
java.io.IOException
public void readFields() throws java.io.IOException
java.io.IOException
public void readMethods() throws java.io.IOException
java.io.IOException