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