Interface InputStreamStatistics

All Known Implementing Classes:
AbstractLZ77CompressorInputStream, BlockLZ4CompressorInputStream, BZip2CompressorInputStream, Deflate64CompressorInputStream, DeflateCompressorInputStream, ExplodingInputStream, FramedLZ4CompressorInputStream, FramedSnappyCompressorInputStream, GzipCompressorInputStream, InflaterInputStreamWithStatistics, JarArchiveInputStream, LZMACompressorInputStream, LZWInputStream, SnappyCompressorInputStream, UnshrinkingInputStream, XZCompressorInputStream, ZCompressorInputStream, ZipArchiveInputStream, ZipFile.StoredStatisticsStream

public interface InputStreamStatistics
This interface provides statistics on the current decompression stream. The stream consumer can use that statistics to handle abnormal compression ratios, i.e. to prevent zip bombs.
Since:
1.17
  • Method Details

    • getCompressedCount

      long getCompressedCount()
      Returns:
      the amount of raw or compressed bytes read by the stream
    • getUncompressedCount

      long getUncompressedCount()
      Returns:
      the amount of decompressed bytes returned by the stream