harpoon.IR.RawClass
Class ClassDataInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by harpoon.IR.RawClass.ClassDataInputStream
All Implemented Interfaces:
Closeable, DataInput

public class ClassDataInputStream
extends DataInputStream

A specialized input stream reader for java bytecode files.

Version:
$Id: ClassDataInputStream.java,v 1.2 2002/02/25 21:05:26 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
ClassDataOutputStream

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ClassDataInputStream(InputStream in)
          Creates a ClassDataInputStream from a standard InputStream.
 
Method Summary
 int read_u1()
          Read an unsigned one-byte quantity, high byte first.
 int read_u2()
          Read an unsigned two-byte quantity, high byte first.
 long read_u4()
          Read an unsigned four-byte quantity, high byte first.
 long readUnsignedInt()
          Supplies the mysterious missing method from the standard DataInputStream superclass.
 
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

ClassDataInputStream

public ClassDataInputStream(InputStream in)
Creates a ClassDataInputStream from a standard InputStream.

Method Detail

readUnsignedInt

public final long readUnsignedInt()
                           throws IOException
Supplies the mysterious missing method from the standard DataInputStream superclass.

Throws:
IOException

read_u1

public final int read_u1()
                  throws IOException
Read an unsigned one-byte quantity, high byte first.

Throws:
IOException

read_u2

public final int read_u2()
                  throws IOException
Read an unsigned two-byte quantity, high byte first.

Throws:
IOException

read_u4

public final long read_u4()
                   throws IOException
Read an unsigned four-byte quantity, high byte first.

Throws:
IOException