A FilterInputStream which will keep track of the number of bytes
read from the underlying stream. Callers who want to know how many
bytes have been read should attach a ChangeListener and call getCount()
whenever a change event is fired.
If no ChangeListeners are attached then this stream will not fire
events. This improves performance by only firing events when at least
one object is expecting them.
author: Anthony Eden
read(byte[] buffer) Fill the buffer with bytes until the buffer is full, the stream
blocks, or until the end of the stream.
public int
read(byte[] buffer, int offset, int length) Fill the buffer with bytes starting at the given offset of the buffer
and reading for length number of bytes.
Fill the buffer with bytes until the buffer is full, the stream
blocks, or until the end of the stream.
Parameters: buffer - The buffer to fill The number of bytes read throws: IOException -
read
public int read(byte[] buffer, int offset, int length) throws IOException(Code)
Fill the buffer with bytes starting at the given offset of the buffer
and reading for length number of bytes.
Parameters: buffer - The buffer Parameters: offset - The buffer offset Parameters: length - The number of bytes to read The number of bytes read throws: IOException -