| java.lang.Object java.io.OutputStream org.w3c.util.CountOutputStream
CountOutputStream | public class CountOutputStream extends OutputStream (Code) | | This class can be used to count number of bytes emitted to a stream.
The stream will actually throw the data away. It's main function is
to count the number of bytes emitted to a stream before actually emitting
the bytes (that's not really efficient, but works enough).
|
Field Summary | |
protected int | count |
Method Summary | |
public void | close() Close that count stream. | public void | flush() Flush that count stream. | public int | getCount() Get the current number of bytes emitted to that stream. | public void | write(byte b) Write an array of bytes to that stream. | public void | write(byte b, int off, int len) Write part of an array of bytes to that stream. | public void | write(int b) Write a single byte to that stream. |
count | protected int count(Code) | | |
CountOutputStream | public CountOutputStream()(Code) | | Create a new instance of that class.
|
close | public void close()(Code) | | Close that count stream.
|
flush | public void flush()(Code) | | Flush that count stream.
|
getCount | public int getCount()(Code) | | Get the current number of bytes emitted to that stream.
The current count value. |
write | public void write(byte b)(Code) | | Write an array of bytes to that stream.
|
write | public void write(byte b, int off, int len)(Code) | | Write part of an array of bytes to that stream.
|
write | public void write(int b)(Code) | | Write a single byte to that stream.
|
|
|