public class ReplayableInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
bytePosition |
protected ByteBuffer |
bytes |
protected boolean |
doBuffering |
protected InputStream |
wrappedStream |
| Constructor and Description |
|---|
ReplayableInputStream(InputStream wrappedStream)
Constructor
|
protected final ByteBuffer bytes
protected final InputStream wrappedStream
protected int bytePosition
protected boolean doBuffering
public ReplayableInputStream(InputStream wrappedStream)
public void restart(boolean lastRestart)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException