All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gnu.bytecode.dump

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----java.io.FilterInputStream
                   |
                   +----java.io.DataInputStream
                           |
                           +----gnu.bytecode.ClassFileInput
                                   |
                                   +----gnu.bytecode.dump

public class dump
extends ClassFileInput
Class to read a ClassType from a DataInputStream (.class file).

Author:
Per Bothner

Constructor Index

 o dump(InputStream)

Method Index

 o main(String[])
Reads a .class file, and prints out the contents to System.out.
 o printAttributes()
 o readAttribute(String, int, AttrContainer)
 o readConstants()
 o usage()

Constructors

 o dump
 public dump(InputStream str) throws IOException, ClassFormatError

Methods

 o readConstants
 public ConstantPool readConstants() throws IOException
Overrides:
readConstants in class ClassFileInput
 o readAttribute
 public Attribute readAttribute(String name,
                                int length,
                                AttrContainer container) throws IOException
Overrides:
readAttribute in class ClassFileInput
 o printAttributes
 public void printAttributes()
 o main
 public static void main(String args[])
Reads a .class file, and prints out the contents to System.out. Very rudimentary - prints out the constant pool, and field and method names and types, but only minimal attributes (i.e. no dis-assembly yet).

Parameters:
args - One argument - the name of a .class file.
 o usage
 public static void usage()

All Packages  Class Hierarchy  This Package  Previous  Next  Index