org.apache.commons.compress.utils

## Interface InputStreamStatistics

- All Known Implementing Classes:
    AbstractLZ77CompressorInputStream, BlockLZ4CompressorInputStream, BrotliCompressorInputStream, BZip2CompressorInputStream, Deflate64CompressorInputStream, DeflateCompressorInputStream, FramedLZ4CompressorInputStream, FramedSnappyCompressorInputStream, GzipCompressorInputStream, JarArchiveInputStream, LZMACompressorInputStream, LZWInputStream, SnappyCompressorInputStream, XZCompressorInputStream, ZCompressorInputStream, ZipArchiveInputStream, ZstdCompressorInputStream

      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 Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getCompressedCount()`
    `long` | `getUncompressedCount()`

- - ### Method Detail

    - #### 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

Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.