Class CountingOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class CountingOutputStream
    extends OutputStream
    An output stream with a counter of the number of bytes written. IMPORTANT: Of course, if the underlying stream adds bytes on its own, these bytes will not be counted.