public class LookaheadInputStream extends FilterInputStream
in
Constructor and Description |
---|
LookaheadInputStream(int lookaheadSize)
Configure a stream that hides a number of bytes from the reader.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getEOFReached() |
byte[] |
getFooter()
grab the lookahead footer
|
void |
initialize(InputStream src)
Start the LookaheadInputStream with the given input stream.
|
int |
read() |
int |
read(byte[] buf) |
int |
read(byte[] buf,
int off,
int len) |
available, close, mark, markSupported, reset, skip
public LookaheadInputStream(int lookaheadSize)
lookaheadSize
- how many bytes to hidepublic boolean getEOFReached()
public void initialize(InputStream src) throws IOException
IOException
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] buf) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] buf, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public byte[] getFooter()