Name | Description | |
---|---|---|
ByteInputBuffer Constructor | Overloaded. |
The following tables list the members exposed by ByteInputBuffer.
Name | Description | |
---|---|---|
ByteInputBuffer Constructor | Overloaded. |
Name | Description | |
---|---|---|
addByteArray | Adds the specified data to the end of the byte array stream. This method modifies the byte array buffer. It can also discard the already read input. | |
read | Reads the next byte of data from this input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, -1 is returned.
This method is not synchronized, so it is not thread safe. | |
readChecked | Reads the next byte of data from this input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the EOFException exception is thrown.
This method is not synchronized, so it is not thread safe. | |
setByteArray | Sets the underlying buffer byte array to the given one, with the given offset and length. If 'buf' is null then the current byte buffer is assumed. If 'offset' is negative, then it will be assumed to be 'off+len', where 'off' and 'len' are the offset and length of the current byte buffer.
The byte array is not copied. |