Class CountOutputStream

java.lang.Object
java.io.OutputStream
com.itextpdf.kernel.pdf.CountOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class CountOutputStream extends OutputStream
An OutputStream that counts the written bytes. You should not use same instance of this class in different threads as far as it's not thread safe.