org.apache.bcel.util

Class 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 386056 2006-03-15 11:31:56Z tcurdt $

Author: M. Dahm

Nested Class Summary
static classByteSequence.ByteArrayStream
Field Summary
ByteSequence.ByteArrayStreambyte_stream
Constructor Summary
ByteSequence(byte[] bytes)
Method Summary
intgetIndex()
voidunreadByte()

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()