| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: current positionImplements org. Returns the current position. |
| public boolean | Returns: true if there are any bytes left to readImplements org. Determines if there are any bytes left to read or not. |
| public int | |
| public int | Returns: the unsigned byte as intoffset to the byte to be peeked offset)Implements org. Peeks one single unsigned byte from the buffer. |
| public byte | Returns: the byteImplements org. Read one single byte from the buffer. |
| public byte[] | Returns: an array with containing the bytes from the bufferthe number of bytes to be read length)Implements org. Read a number of single byte values from the buffer. |
| public int | Returns: the unsigned byte as intImplements org. Read one single unsigned byte from the buffer. |
| public void | setPosition(int
the given position position)Implements org. Sets the current position to the given value. |
| bufferPosition | back to summary |
|---|---|
| private int bufferPosition | |
| inputBuffer | back to summary |
|---|---|
| private final byte[] inputBuffer | |
| DataInputByteArray | back to summary |
|---|---|
| public DataInputByteArray(byte[] buffer) Constructor.
| |
| getPosition | back to summary |
|---|---|
| public int getPosition() Implements org. Returns the current position.
| |
| hasRemaining | back to summary |
|---|---|
| public boolean hasRemaining() throws IOException Implements org. Determines if there are any bytes left to read or not.
| |
| length | back to summary |
|---|---|
| public int length() throws IOException Implements org.
| |
| peekUnsignedByte | back to summary |
|---|---|
| public int peekUnsignedByte(int offset) throws IOException Implements org. Peeks one single unsigned byte from the buffer.
| |
| readByte | back to summary |
|---|---|
| public byte readByte() throws IOException Implements org. Read one single byte from the buffer.
| |
| readBytes | back to summary |
|---|---|
| public byte[] readBytes(int length) throws IOException Implements org. Read a number of single byte values from the buffer.
| |
| readUnsignedByte | back to summary |
|---|---|
| public int readUnsignedByte() throws IOException Implements org. Read one single unsigned byte from the buffer.
| |
| setPosition | back to summary |
|---|---|
| public void setPosition(int position) throws IOException Implements org. Sets the current position to the given value.
| |