@NotThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) final class CountingInputStream extends DecoratingInputStream
| Modifier and Type | Field and Description |
|---|---|
private long |
bytesRead
The number of bytes read.
|
delegate| Constructor and Description |
|---|
CountingInputStream(InputStream in)
Constructs a new counting input stream.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesRead() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
resetBytesRead() |
long |
skip(long n) |
available, close, mark, markSupported, read, reset, toStringCountingInputStream(@Nullable
InputStream in)
in - the decorated input stream.public long getBytesRead()
public int read()
throws IOException
read in class DecoratingInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class DecoratingInputStreamIOExceptionpublic void resetBytesRead()
public long skip(long n)
throws IOException
skip in class DecoratingInputStreamIOExceptionCopyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.