public class PushbackInputStream extends FilterInputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buf
buf
|
protected int |
pos
pos
|
in
Constructor and Description |
---|
PushbackInputStream(InputStream inputstream)
PushbackInputStream
|
PushbackInputStream(InputStream inputstream,
int i) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] abyte0,
int i,
int j)
Read byte data until there is no more available.
|
void |
unread(byte[] abyte0) |
void |
unread(byte[] abyte0,
int i,
int j) |
void |
unread(int i) |
public PushbackInputStream(InputStream inputstream)
inputstream
- ?public PushbackInputStream(InputStream inputstream, int i)
inputstream
- ?i
- ?public int available() throws IOException
available
in class FilterInputStream
IOException
- ?public boolean markSupported()
markSupported
in class FilterInputStream
public int read() throws IOException
read
in class FilterInputStream
IOException
- ?public int read(byte[] abyte0, int i, int j) throws IOException
InputStream
read
in class FilterInputStream
abyte0
- ?i
- ?j
- ?IOException
- ?public void unread(int i) throws IOException
i
- ?IOException
- ?public void unread(byte[] abyte0) throws IOException
abyte0
- ?IOException
- ?public void unread(byte[] abyte0, int i, int j) throws IOException
abyte0
- ?i
- ?j
- ?IOException
- ?