A FilterOutputStream which will keep track of the number of bytes
written to the underlying stream. Callers who want to know how many
bytes have been written 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
write(byte[] buffer) Write the buffer to the stream.
public void
write(byte[] buffer, int offset, int length) Write the buffer to the stream with bytes starting at the given offset
of the buffer and reading for length number of bytes.
Write the buffer to the stream.
Parameters: buffer - The buffer to write The number of bytes written throws: IOException -
write
public void write(byte[] buffer, int offset, int length) throws IOException(Code)
Write the buffer to the stream 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 write The number of bytes written throws: IOException -