public class DebugInputStream extends WrappedInputStream
InputStream that debugs read and skip actions.| Constructor and Description |
|---|
DebugInputStream(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() |
available, close, getWrappedInputStream, markSupported, readpublic DebugInputStream(@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 WrappedInputStreamIOExceptionpublic final int read(byte[] b,
int nOffset,
int nLength)
throws IOException
read in class WrappedInputStreamIOExceptionpublic final long skip(@Nonnegative long n) throws IOException
skip in class WrappedInputStreamIOExceptionpublic final void mark(@Nonnegative int nReadlimit)
mark in class WrappedInputStreampublic final void reset()
throws IOException
reset in class WrappedInputStreamIOExceptionpublic String toString()
toString in class WrappedInputStreamCopyright © 2006–2015 phloc systems. All rights reserved.