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) intreadAttributes(AttrContainer container) voidstatic ClassTypereadClassType(InputStream str) Read a class (in .class format) from an InputStream.voidvoidbooleanvoidfinal voidskipAttribute(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, skipBytesMethods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ClassFileInput
- Throws:
IOException
-
ClassFileInput
- Throws:
IOExceptionClassFormatError
-
-
Method Details
-
readClassType
Read a class (in .class format) from an InputStream.- Returns:
- A new ClassType object representing the class that was read.
- Throws:
IOExceptionClassFormatError
-
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
-