Example usage for Java org.apache.commons.io.output CountingOutputStream fields, constructors, methods, implement or subclass
The text is from its open source code.
CountingOutputStream(OutputStream out) Constructs a new CountingOutputStream. |
void | close() Invokes the delegate's close() method. |
void | flush() Invokes the delegate's flush() method. |
long | getByteCount() The number of bytes that have passed through this stream. |
int | getCount() The number of bytes that have passed through this stream. |
int | resetCount() Set the byte count back to 0. |
void | write(byte[] b) Writes the contents of the specified byte array to this output stream keeping count of the number of bytes written. |
void | write(int b) Writes a single byte to the output stream adding to the count of the number of bytes written. |
void | write(byte[] b, int off, int len) Writes a portion of the specified byte array to this output stream keeping count of the number of bytes written. |