public class PushbackInputStream extends FilterInputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buf |
protected int |
pos |
in
Constructor and Description |
---|
PushbackInputStream(InputStream in) |
PushbackInputStream(InputStream in,
int size) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
void |
unread(byte[] b) |
void |
unread(byte[] b,
int off,
int len) |
void |
unread(int b) |
mark, read, reset
public PushbackInputStream(InputStream in)
public PushbackInputStream(InputStream in, int size)
public void close() throws IOException
close
in class FilterInputStream
IOException
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException, NullPointerException, ArrayIndexOutOfBoundsException
read
in class FilterInputStream
IOException
NullPointerException
ArrayIndexOutOfBoundsException
public void unread(int b) throws IOException
IOException
public void unread(byte[] b) throws IOException
IOException
public void unread(byte[] b, int off, int len) throws IOException
IOException
public int available() throws IOException
available
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public boolean markSupported()
markSupported
in class FilterInputStream