Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.bcel.util
Class ByteSequence  view ByteSequence download ByteSequence.java

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byjava.io.DataInputStream
              extended byorg.apache.bcel.util.ByteSequence
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput

public final class ByteSequence
extends java.io.DataInputStream

Utility class that implements a sequence of bytes which can be read via the `readByte()' method. This is used to implement a wrapper for the Java byte code stream to gain some more readability.

Version:
$Id: ByteSequence.java 386056 2006-03-15 11:31:56Z tcurdt $

Nested Class Summary
private static class ByteSequence.ByteArrayStream
           
 
Field Summary
private  ByteSequence.ByteArrayStream byte_stream
           
 
Fields inherited from class java.io.DataInputStream
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ByteSequence(byte[] bytes)
           
 
Method Summary
 int getIndex()
           
(package private)  void unreadByte()
           
 
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
 

Field Detail

byte_stream

private ByteSequence.ByteArrayStream byte_stream
Constructor Detail

ByteSequence

public ByteSequence(byte[] bytes)
Method Detail

getIndex

public final int getIndex()

unreadByte

final void unreadByte()