Class ZipFile.StoredStatisticsStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.compress.utils.CountingInputStream
org.apache.commons.compress.archivers.zip.ZipFile.StoredStatisticsStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,InputStreamStatistics
- Enclosing class:
- ZipFile
private static class ZipFile.StoredStatisticsStream
extends CountingInputStream
implements InputStreamStatistics
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.compress.utils.CountingInputStream
count, getBytesRead, read, read, read
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
Methods inherited from class java.io.InputStream
readAllBytes, readNBytes, transferTo
-
Constructor Details
-
StoredStatisticsStream
StoredStatisticsStream(InputStream in)
-
-
Method Details
-
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
-