Class CompressorInputStream

    • Constructor Detail

      • CompressorInputStream

        public CompressorInputStream()
    • Method Detail

      • count

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

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

        protected void pushedBackBytes(long pushedBack)
        Decrements the counter of already read bytes.
        Parameters:
        pushedBack - the number of bytes pushed back.
        Since:
        1.7
      • getCount

        @Deprecated
        public int getCount()
        Deprecated.  this method may yield wrong results for large archives, use #getBytesRead instead
        Returns the current number of bytes read from this stream.
        Returns:
        the number of read bytes
      • getBytesRead

        public long getBytesRead()
        Returns the current number of bytes read from this stream.
        Returns:
        the number of read bytes
        Since:
        1.1