public class RewindableInputStream extends InputStream
| Constructor and Description |
|---|
RewindableInputStream(InputStream input)
Constructor.
|
RewindableInputStream(InputStream input,
int maxBytesToRemember)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
InputStream |
rewind() |
available, mark, markSupported, read, reset, skippublic RewindableInputStream(InputStream input)
input - public RewindableInputStream(InputStream input, int maxBytesToRemember)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic InputStream rewind() throws IOException
IOExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.