Class InflaterInputStreamWithStatistics
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.util.zip.InflaterInputStream
org.apache.commons.compress.archivers.zip.InflaterInputStreamWithStatistics
- All Implemented Interfaces:
Closeable
,AutoCloseable
,InputStreamStatistics
class InflaterInputStreamWithStatistics
extends InflaterInputStream
implements InputStreamStatistics
Helper class to provide statistics
- Since:
- 1.17
-
Field Summary
FieldsFields inherited from class java.util.zip.InflaterInputStream
buf, inf, len
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.zip.InflaterInputStream
available, close, mark, markSupported, reset, skip
Methods inherited from class java.io.FilterInputStream
read
Methods inherited from class java.io.InputStream
readAllBytes, readNBytes, transferTo
-
Field Details
-
compressedCount
private long compressedCount -
uncompressedCount
private long uncompressedCount
-
-
Constructor Details
-
InflaterInputStreamWithStatistics
-
InflaterInputStreamWithStatistics
-
InflaterInputStreamWithStatistics
-
-
Method Details
-
fill
- Overrides:
fill
in classInflaterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInflaterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInflaterInputStream
- Throws:
IOException
-
getCompressedCount
public long getCompressedCount()- Specified by:
getCompressedCount
in interfaceInputStreamStatistics
- Returns:
- the amount of raw or compressed bytes read by the stream
-
getUncompressedCount
public long getUncompressedCount()- Specified by:
getUncompressedCount
in interfaceInputStreamStatistics
- Returns:
- the amount of decompressed bytes returned by the stream
-