Interface InputStreamStatistics
-
- All Known Implementing Classes:
AbstractLZ77CompressorInputStream
,BlockLZ4CompressorInputStream
,BZip2CompressorInputStream
,Deflate64CompressorInputStream
,DeflateCompressorInputStream
,FramedLZ4CompressorInputStream
,FramedSnappyCompressorInputStream
,GzipCompressorInputStream
,JarArchiveInputStream
,LZMACompressorInputStream
,LZWInputStream
,SnappyCompressorInputStream
,XZCompressorInputStream
,ZCompressorInputStream
,ZipArchiveInputStream
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 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
-
-