public class LookaheadInputStream
extends java.io.FilterInputStream
コンストラクタ | 説明 |
---|---|
LookaheadInputStream(int lookaheadSize) |
Configure a stream that hides a number of bytes from the reader.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
boolean |
getEOFReached() |
|
byte[] |
getFooter() |
Grab the lookahead footer.
|
void |
initialize(java.io.InputStream src) |
Start the LookaheadInputStream with the given input stream.
|
int |
read() |
|
int |
read(byte[] buf,
int off,
int len) |
|
long |
skip(long n) |
public LookaheadInputStream(int lookaheadSize)
lookaheadSize
- how many bytes to hidepublic boolean getEOFReached()
public void initialize(java.io.InputStream src) throws java.io.IOException
java.io.IOException
- if less than lookaheadSize bytes could be read.public int read() throws java.io.IOException
read
クラス内 java.io.FilterInputStream
java.io.IOException
public int read(byte[] buf, int off, int len) throws java.io.IOException
read
クラス内 java.io.FilterInputStream
java.io.IOException
public byte[] getFooter()
public long skip(long n) throws java.io.IOException
skip
クラス内 java.io.FilterInputStream
java.io.IOException