FileDocCategorySizeDatePackage
ByteSequence.javaAPI DocJava SE 5 API3718Fri Aug 26 14:55:24 BST 2005com.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.1.1 2001/10/29 20:00:28 jvanzyl 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();