Top Description Inners Fields Constructors Methods
com.sun.org.apache.bcel.internal.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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final ByteSequence.ByteArrayStream

Constructor Summary

AccessConstructor and Description
public
ByteSequence(final byte[] bytes)

Method Summary

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

Field Detail

byteStreamback to summary
private final ByteSequence.ByteArrayStream byteStream

Constructor Detail

ByteSequenceback to summary
public ByteSequence(final byte[] bytes)

Method Detail

getIndexback to summary
public int getIndex()
unreadByteback to summary
pack-priv void unreadByte()
com.sun.org.apache.bcel.internal.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(final byte[] bytes)

Method Summary

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

Constructor Detail

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

Method Detail

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