FileDocCategorySizeDatePackage
ByteSequence.javaAPI DocJava SE 6 API3721Tue Jun 10 00:22:24 BST 2008com.sun.org.apache.bcel.internal.util

ByteSequence

public final class ByteSequence extends 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,v 1.1.2.1 2005/07/31 23:47:00 jeffsuttor Exp $
author
M. Dahm

Fields Summary
private ByteArrayStream
byte_stream
Constructors Summary
public ByteSequence(byte[] bytes)

 
    super(new ByteArrayStream(bytes));
    byte_stream = (ByteArrayStream)in;
  
Methods Summary
public final intgetIndex()

 return byte_stream.getPosition(); 
final voidunreadByte()

 byte_stream.unreadByte();