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:
java.io.Closeable
,java.lang.AutoCloseable
,InputStreamStatistics
- Enclosing class:
- ZipFile
private static final class ZipFile.StoredStatisticsStream extends CountingInputStream implements InputStreamStatistics
-
-
Constructor Summary
Constructors Constructor Description StoredStatisticsStream(java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCompressedCount()
Gets the amount of raw or compressed bytes read by the stream.long
getUncompressedCount()
Gets the amount of decompressed bytes returned by the stream.-
Methods inherited from class org.apache.commons.compress.utils.CountingInputStream
count, getBytesRead, read, read, read
-
-
-
-
Method Detail
-
getCompressedCount
public long getCompressedCount()
Description copied from interface:InputStreamStatistics
Gets the amount of raw or compressed bytes read by the stream.- Specified by:
getCompressedCount
in interfaceInputStreamStatistics
- Returns:
- the amount of raw or compressed bytes read by the stream.
-
getUncompressedCount
public long getUncompressedCount()
Description copied from interface:InputStreamStatistics
Gets the amount of decompressed bytes returned by the stream.- Specified by:
getUncompressedCount
in interfaceInputStreamStatistics
- Returns:
- the amount of decompressed bytes returned by the stream.
-
-