public final class CountingInputStream extends FilterInputStream
in| Constructor and Description |
|---|
CountingInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
count(long read)
Increments the counter of already read bytes.
|
long |
getBytesRead()
Returns the current number of bytes read from this stream.
|
CanReportProgress |
getProgressReporter(long totalSize) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, reset, skippublic CountingInputStream(InputStream in)
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionprotected final void count(long read)
read - the number of bytes readpublic long getBytesRead()
public CanReportProgress getProgressReporter(long totalSize)
Copyright © 2018. All rights reserved.