public class RewindableInputStream extends InputStream implements Rewindable
Constructor and Description |
---|
RewindableInputStream(InputStream in) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
boolean |
canRewind() |
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
rewind() |
void |
willNotRewind() |
mark, markSupported, read, reset, skip
public RewindableInputStream(InputStream in)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public void rewind()
rewind
in interface Rewindable
public boolean canRewind()
canRewind
in interface Rewindable
public void willNotRewind()
willNotRewind
in interface Rewindable
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 int available() throws IOException
available
in class InputStream
IOException