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.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException