Class ByteCountOutputStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.aoapps.hodgepodge.io.ByteCountOutputStream
All Implemented Interfaces:
NoClose, Closeable, Flushable, AutoCloseable

public class ByteCountOutputStream extends FilterOutputStream implements NoClose
Wraps an OutputStream to count the number of bytes transferred. The counter is not synchronized. Any necessary synchronization should be externally applied.
Author:
AO Industries, Inc.