|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
gnu.bytecode.ClassFileInput
gnu.bytecode.dump
public class dump
Class to read a ClassType from a DataInputStream (.class file).
| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
dump(java.io.InputStream str)
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Reads a .class file, and prints out the contents to System.out. |
void |
printAttributes()
|
Attribute |
readAttribute(java.lang.String name,
int length,
AttrContainer container)
|
ConstantPool |
readConstants()
|
static void |
usage()
|
| Methods inherited from class gnu.bytecode.ClassFileInput |
|---|
readAttributes, readClassInfo, readClassType, readFields, readHeader, readMethods, skipAttribute |
| 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.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public dump(java.io.InputStream str)
throws java.io.IOException,
java.lang.ClassFormatError
java.io.IOException
java.lang.ClassFormatError| Method Detail |
|---|
public ConstantPool readConstants()
throws java.io.IOException
readConstants in class ClassFileInputjava.io.IOException
public Attribute readAttribute(java.lang.String name,
int length,
AttrContainer container)
throws java.io.IOException
readAttribute in class ClassFileInputjava.io.IOExceptionpublic void printAttributes()
public static void main(java.lang.String[] args)
args - One argument - the name of a .class file.public static void usage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||