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, skipBytespublic ClassFileInput(java.io.InputStream str)
throws java.io.IOException
java.io.IOExceptionpublic ClassFileInput(ClassType ctype, java.io.InputStream str) throws java.io.IOException, java.lang.ClassFormatError
java.io.IOExceptionjava.lang.ClassFormatErrorpublic static ClassType readClassType(java.io.InputStream str) throws java.io.IOException, java.lang.ClassFormatError
java.io.IOExceptionjava.lang.ClassFormatErrorpublic boolean readHeader()
throws java.io.IOException
java.io.IOExceptionpublic void readFormatVersion()
throws java.io.IOException
java.io.IOExceptionpublic ConstantPool readConstants() throws java.io.IOException
java.io.IOExceptionpublic void readClassInfo()
throws java.io.IOException
java.io.IOExceptionpublic int readAttributes(AttrContainer container) throws java.io.IOException
java.io.IOExceptionpublic final void skipAttribute(int length)
throws java.io.IOException
java.io.IOExceptionpublic Attribute readAttribute(java.lang.String name, int length, AttrContainer container) throws java.io.IOException
java.io.IOExceptionpublic void readFields()
throws java.io.IOException
java.io.IOExceptionpublic void readMethods()
throws java.io.IOException
java.io.IOException