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