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

private static class
ByteSequence.ByteArrayStream

Field Summary

private ByteSequence.ByteArrayStream
byte_stream

Constructor Summary

ByteSequence(byte[] bytes)

Method Summary

int
getIndex()
(package private) void
unreadByte()

Field Details

byte_stream

private ByteSequence.ByteArrayStream byte_stream

Constructor Details

ByteSequence

public ByteSequence(byte[] bytes)

Method Details

getIndex

public final int getIndex()

unreadByte

(package private) final void unreadByte()