Class CountingOutputStream

    • Constructor Detail

      • CountingOutputStream

        public CountingOutputStream(OutputStream out)
    • Method Detail

      • count

        protected void count(long written)
        Increments the counter of already written bytes. Doesn't increment if the EOF has been hit (written == -1)
        Parameters:
        written - the number of bytes written
      • getBytesWritten

        public long getBytesWritten()
        Returns the current number of bytes written to this stream.
        Returns:
        the number of written bytes