Top Description Inners Fields Constructors Methods
org.aspectj.apache.bcel.util

public final Class ByteSequence

extends DataInputStream
Class Inheritance
Imports
java.io.ByteArrayInputStream, .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.
Author
M. Dahm
Version
$Id: ByteSequence.java,v 1.3 2008/05/28 23:52:53 aclement Exp $

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private ByteSequence.ByteArrayStream

Constructor Summary

AccessConstructor and Description
public
ByteSequence(byte[] bytes)

Method Summary

Modifier and TypeMethod and Description
public final int
pack-priv final void
Inherited from java.io.DataInputStream:
readreadreadBooleanreadBytereadCharreadDoublereadFloatreadFullyreadFullyreadIntreadLinereadLongreadShortreadUnsignedBytereadUnsignedShortreadUTFreadUTFskipBytes

Field Detail

byte_streamback to summary
private ByteSequence.ByteArrayStream byte_stream

Constructor Detail

ByteSequenceback to summary
public ByteSequence(byte[] bytes)

Method Detail

getIndexback to summary
public final int getIndex()
unreadByteback to summary
pack-priv final void unreadByte()
org.aspectj.apache.bcel.util back to summary

private final Class ByteSequence.ByteArrayStream

extends ByteArrayInputStream
Class Inheritance

Field Summary

Inherited from java.io.ByteArrayInputStream:
bufcountmarkpos

Constructor Summary

AccessConstructor and Description
pack-priv
ByteArrayStream(byte[] bytes)

Method Summary

Modifier and TypeMethod and Description
pack-priv final int
pack-priv final void
Inherited from java.io.ByteArrayInputStream:
availableclosemarkmarkSupportedreadreadreadAllBytesreadNBytesresetskiptransferTo

Constructor Detail

ByteArrayStreamback to summary
pack-priv ByteArrayStream(byte[] bytes)

Method Detail

getPositionback to summary
pack-priv final int getPosition()
unreadByteback to summary
pack-priv final void unreadByte()