Method Summary |
|
ByteOrder | getByteOrder() Gets the byte order. |
long | getLength() Gets the used buffer size. |
long | getPosition() Gets the pointer position. |
int | hashCode() Gets the hash representation of the sequence. |
void | read(byte[] data) Reads a sequence of bytes from the stream and advances the position within the stream. |
void | read(byte[] data, int offset, int length) Reads a sequence of bytes from the stream and advances the position within the stream. |
byte | readByte() Reads a byte from the stream and advances the position within the stream. |
int | readInt() Reads an integer from the stream and advances the position within the stream. |
String | readLine() Reads the next line of text. |
short | readShort() Reads a short integer from the stream and advances the position within the stream. |
String | readString(int length) Reads a string from the stream and advances the position within the stream.
Parameters: length - Number of bytes to read. |
int | readUnsignedByte() Reads an unsigned byte integer from the stream and advances the position within the stream. |
int | readUnsignedShort() Reads an unsigned short integer from the stream and advances the position within the stream. |
void | seek(long position) Sets the pointer absolute position. |
void | setByteOrder(ByteOrder value) Sets the byte order. |
void | setPosition(long value) Sets the pointer position. |
void | skip(long offset) Sets the pointer relative position. |
byte[] | toByteArray() Gets the buffer data copied to a newly-allocated byte array. |