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, skip
public RewindableInputStream(InputStream input)
input
- public RewindableInputStream(InputStream input, int maxBytesToRemember)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] buffer, int offset, int length) throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public InputStream rewind() throws IOException
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.