All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gnu.bytecode.ClassFileInput

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

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

Author:
Per Bothner

Constructor Index

 o ClassFileInput(ClassType, InputStream)
 o ClassFileInput(InputStream)

Method Index

 o readAttribute(String, int, AttrContainer)
 o readAttributes(AttrContainer)
 o readClassInfo()
 o readClassType(InputStream)
Read a class (in .class format) from an InputStream.
 o readConstants()
 o readFields()
 o readHeader()
 o readMethods()
 o skipAttribute(int)

Constructors

 o ClassFileInput
 public ClassFileInput(InputStream str) throws IOException
 o ClassFileInput
 public ClassFileInput(ClassType ctype,
                       InputStream str) throws IOException, ClassFormatError

Methods

 o readClassType
 public static ClassType readClassType(InputStream str) throws IOException, ClassFormatError
Read a class (in .class format) from an InputStream.

Returns:
A new ClassType object representing the class that was read.
 o readHeader
 public boolean readHeader() throws IOException
 o readConstants
 public ConstantPool readConstants() throws IOException
 o readClassInfo
 public void readClassInfo() throws IOException
 o readAttributes
 public int readAttributes(AttrContainer container) throws IOException
 o skipAttribute
 public final void skipAttribute(int length) throws IOException
 o readAttribute
 public Attribute readAttribute(String name,
                                int length,
                                AttrContainer container) throws IOException
 o readFields
 public void readFields() throws IOException
 o readMethods
 public void readMethods() throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index