Class CountingOutputStream

java.lang.Object
java.io.OutputStream
com.applitools.utils.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.