public class RewindableInputStream extends InputStream
Constructor and Description |
---|
RewindableInputStream(InputStream delegate,
int initialBufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getByteCount()
Return the number of bytes read using this stream.
|
int |
read() |
int |
read(byte[] buffer) |
int |
read(byte[] outBuffer,
int outOffset,
int length) |
void |
rewind(int numBytes)
Rewind the buffer a certain number of bytes.
|
available, mark, markSupported, reset, skip
public RewindableInputStream(InputStream delegate, int initialBufferSize)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] buffer) throws IOException
read
in class InputStream
IOException
public int read(byte[] outBuffer, int outOffset, int length) throws IOException
read
in class InputStream
IOException
public void rewind(int numBytes) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public long getByteCount()
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.