public abstract class CompressorInputStream extends InputStream
Constructor and Description |
---|
CompressorInputStream() |
Modifier and Type | Method and Description |
---|---|
protected void |
count(int read)
Increments the counter of already read bytes.
|
protected void |
count(long read)
Increments the counter of already read bytes.
|
long |
getBytesRead()
Returns the current number of bytes read from this stream.
|
int |
getCount()
Deprecated.
this method may yield wrong results for large
archives, use #getBytesRead instead
|
protected void |
pushedBackBytes(long pushedBack)
Decrements the counter of already read bytes.
|
available, close, mark, markSupported, read, read, read, reset, skip
public CompressorInputStream()
protected void count(int read)
read
- the number of bytes readprotected void count(long read)
read
- the number of bytes readprotected void pushedBackBytes(long pushedBack)
pushedBack
- the number of bytes pushed back.@Deprecated public int getCount()
public long getBytesRead()
Copyright © 2017 The Apache Software Foundation. All rights reserved.