public class CountingInputStream extends WrappedInputStream
InputStream that counts the number of read bytes.| Constructor and Description |
|---|
CountingInputStream(InputStream aSourceIS) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesRead() |
long |
getPosition() |
void |
mark(int nReadlimit) |
int |
read() |
int |
read(byte[] b,
int nOffset,
int nLength) |
void |
reset() |
long |
skip(long n) |
String |
toString() |
available, close, getWrappedInputStream, markSupported, readpublic CountingInputStream(@Nonnull InputStream aSourceIS)
public int read()
throws IOException
read in class WrappedInputStreamIOExceptionpublic int read(byte[] b,
int nOffset,
int nLength)
throws IOException
read in class WrappedInputStreamIOExceptionpublic long skip(@Nonnegative long n) throws IOException
skip in class WrappedInputStreamIOExceptionpublic void mark(@Nonnegative int nReadlimit)
mark in class WrappedInputStreampublic void reset()
throws IOException
reset in class WrappedInputStreamIOException@Nonnegative public long getBytesRead()
@Nonnegative public long getPosition()
public String toString()
toString in class WrappedInputStreamCopyright © 2006–2015 phloc systems. All rights reserved.