A ByteBufferInputStream contains an internal buffer that contains direct or non-direct byte buffer that may be read from the stream. Creation Date: 24/10/2006
Author: Twinsen Tsang
Returns the number of bytes that can be read from this input stream without blocking. The value returned is limit of byte buffer. which is the number of bytes remaining to be read from the input buffer.
Returns: the number of bytes that can be read from the input stream without blocking.
Mark is support by this InputStream.
Returns: always true
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 value -1 is returned.
public synchronized void
Resets the buffer to the marked position. The marked position is 0 unless another position was marked or an offset was specified in the constructor.