org.apache.commons.compress.compressors
Class CompressorInputStream
java.lang.Object
java.io.InputStream
org.apache.commons.compress.compressors.CompressorInputStream
- All Implemented Interfaces:
- Closeable
- Direct Known Subclasses:
- BZip2CompressorInputStream, GzipCompressorInputStream
public abstract class CompressorInputStream
- extends InputStream
Method Summary |
protected void |
count(int read)
Increments the counter of already read bytes. |
int |
getCount()
Returns the current number of bytes read from this stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompressorInputStream
public CompressorInputStream()
count
protected void count(int read)
- Increments the counter of already read bytes.
Doesn't increment if the EOF has been hit (read == -1)
- Parameters:
read
- the number of bytes read
getCount
public int getCount()
- Returns the current number of bytes read from this stream.
- Returns:
- the number of read bytes
Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.