public class LoggingInputStream extends WrappedInputStream
InputStream that debugs read and skip actions.in| Constructor and Description |
|---|
LoggingInputStream(InputStream aSourceIS) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPosition() |
void |
mark(int nReadlimit) |
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(byte[] b,
int nOffset,
int nLength) |
void |
reset() |
long |
skip(long n) |
String |
toString() |
getWrappedInputStreamavailable, close, markSupported, readpublic LoggingInputStream(@Nonnull InputStream aSourceIS)
public 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)
public final int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic final int read(byte[] b,
int nOffset,
int nLength)
throws IOException
read in class FilterInputStreamIOExceptionpublic final long skip(@Nonnegative long n) throws IOException
skip in class FilterInputStreamIOExceptionpublic final void mark(@Nonnegative int nReadlimit)
mark in class FilterInputStreampublic final void reset()
throws IOException
reset in class FilterInputStreamIOExceptionpublic String toString()
toString in class WrappedInputStreamCopyright © 2014–2019 Philip Helger. All rights reserved.