public class LoggingReader extends WrappedReader
Reader that logs read and skip actions.in| Constructor and Description |
|---|
LoggingReader(Reader aSourceReader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getPosition() |
void |
mark(int nReadlimit) |
protected void |
onClose(long nCurrentPosition) |
protected void |
onMark(int nReadLimit,
long nCurrentPosition) |
protected void |
onRead(int nBytesRead,
long nNewPosition) |
protected void |
onReset(long nCurrentPosition) |
protected void |
onSkip(long nBytesSkipped,
long nNewPosition) |
int |
read() |
int |
read(char[] aBuf,
int nOffset,
int nLength) |
void |
reset() |
long |
skip(long n) |
String |
toString() |
getWrappedReadermarkSupported, readypublic final long getPosition()
@OverrideOnDemand protected void onRead(int nBytesRead, long nNewPosition)
@OverrideOnDemand protected void onSkip(long nBytesSkipped, long nNewPosition)
@OverrideOnDemand protected void onMark(int nReadLimit, long nCurrentPosition)
@OverrideOnDemand protected void onReset(long nCurrentPosition)
@OverrideOnDemand protected void onClose(long nCurrentPosition)
public final int read()
throws IOException
read in class FilterReaderIOExceptionpublic final int read(char[] aBuf,
int nOffset,
int nLength)
throws IOException
read in class FilterReaderIOExceptionpublic final long skip(@Nonnegative long n) throws IOException
skip in class FilterReaderIOExceptionpublic final void mark(@Nonnegative int nReadlimit) throws IOException
mark in class FilterReaderIOExceptionpublic final void reset()
throws IOException
reset in class FilterReaderIOExceptionpublic final void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterReaderIOExceptionpublic String toString()
toString in class WrappedReaderCopyright © 2014–2019 Philip Helger. All rights reserved.