com.sun.tools.classfile
Class ClassReader

java.lang.Object
  extended by com.sun.tools.classfile.ClassReader

public class ClassReader
extends java.lang.Object

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.


Field Summary
private  Attribute.Factory attributeFactory
           
private  ClassFile classFile
           
private  java.io.DataInputStream in
           
 
Constructor Summary
ClassReader(ClassFile classFile, java.io.InputStream in, Attribute.Factory attributeFactory)
           
 
Method Summary
(package private)  ClassFile getClassFile()
           
(package private)  ConstantPool getConstantPool()
           
 Attribute readAttribute()
           
 double readDouble()
           
 float readFloat()
           
 void readFully(byte[] b)
           
 int readInt()
           
 long readLong()
           
 int readUnsignedByte()
           
 int readUnsignedShort()
           
 java.lang.String readUTF()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

private java.io.DataInputStream in

classFile

private ClassFile classFile

attributeFactory

private Attribute.Factory attributeFactory
Constructor Detail

ClassReader

ClassReader(ClassFile classFile,
            java.io.InputStream in,
            Attribute.Factory attributeFactory)
      throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getClassFile

ClassFile getClassFile()

getConstantPool

ConstantPool getConstantPool()

readAttribute

public Attribute readAttribute()
                        throws java.io.IOException
Throws:
java.io.IOException

readFully

public void readFully(byte[] b)
               throws java.io.IOException
Throws:
java.io.IOException

readUnsignedByte

public int readUnsignedByte()
                     throws java.io.IOException
Throws:
java.io.IOException

readUnsignedShort

public int readUnsignedShort()
                      throws java.io.IOException
Throws:
java.io.IOException

readInt

public int readInt()
            throws java.io.IOException
Throws:
java.io.IOException

readLong

public long readLong()
              throws java.io.IOException
Throws:
java.io.IOException

readFloat

public float readFloat()
                throws java.io.IOException
Throws:
java.io.IOException

readDouble

public double readDouble()
                  throws java.io.IOException
Throws:
java.io.IOException

readUTF

public java.lang.String readUTF()
                         throws java.io.IOException
Throws:
java.io.IOException