Class CompressorInputStream

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      long getBytesRead()
      Returns the current number of bytes read from this stream.
      int getCount()
      Deprecated.
      this method may yield wrong results for large archives, use #getBytesRead instead
      long getUncompressedCount()
      Returns the amount of raw or compressed bytes read by the stream.
      • Methods inherited from class java.io.InputStream

        available, close, mark, markSupported, nullInputStream, read, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompressorInputStream

        public CompressorInputStream()
    • Method Detail

      • 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
      • getUncompressedCount

        public long getUncompressedCount()
        Returns the amount of raw or compressed bytes read by the stream.

        This implementation invokes getBytesRead().

        Provides half of InputStreamStatistics without forcing subclasses to implement the other half.

        Returns:
        the amount of decompressed bytes returned by the stream
        Since:
        1.17