public class CountingReader extends WrappedReader
Reader that counts the number of read bytes.in| Constructor and Description |
|---|
CountingReader(Reader aSourceReader) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCharsRead() |
long |
getMark() |
long |
getPosition() |
void |
mark(int nReadlimit) |
int |
read() |
int |
read(char[] aBuf,
int nOffset,
int nLength) |
void |
reset() |
long |
skip(long n) |
String |
toString() |
getWrappedReaderclose, markSupported, readypublic int read()
throws IOException
read in class FilterReaderIOExceptionpublic int read(char[] aBuf,
int nOffset,
int nLength)
throws IOException
read in class FilterReaderIOExceptionpublic long skip(@Nonnegative long n) throws IOException
skip in class FilterReaderIOExceptionpublic void mark(@Nonnegative int nReadlimit) throws IOException
mark in class FilterReaderIOExceptionpublic void reset()
throws IOException
reset in class FilterReaderIOException@Nonnegative public final long getCharsRead()
@Nonnegative public final long getPosition()
@Nonnegative public final long getMark()
public String toString()
toString in class WrappedReaderCopyright © 2014–2020 Philip Helger. All rights reserved.