Package gnu.bytecode
Class ClassFileInput
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
gnu.bytecode.ClassFileInput
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
- Direct Known Subclasses:
dump
Class to read a ClassType from a DataInputStream (.class file).
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadAttribute
(String name, int length, AttrContainer container) int
readAttributes
(AttrContainer container) void
static ClassType
readClassType
(InputStream str) Read a class (in .class format) from an InputStream.void
void
boolean
void
final void
skipAttribute
(int length) Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ClassFileInput
- Throws:
IOException
-
ClassFileInput
- Throws:
IOException
ClassFormatError
-
-
Method Details
-
readClassType
Read a class (in .class format) from an InputStream.- Returns:
- A new ClassType object representing the class that was read.
- Throws:
IOException
ClassFormatError
-
readHeader
- Throws:
IOException
-
readFormatVersion
- Throws:
IOException
-
readConstants
- Throws:
IOException
-
readClassInfo
- Throws:
IOException
-
readAttributes
- Throws:
IOException
-
skipAttribute
- Throws:
IOException
-
readAttribute
- Throws:
IOException
-
readFields
- Throws:
IOException
-
readMethods
- Throws:
IOException
-