|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FilterInputStream
|
+--java.io.PushbackInputStream
An input stream that has a 1 byte push back buffer.
| Field Summary | |
protected int |
pushBack
Push back character. |
| Fields inherited from class java.io.FilterInputStream |
in |
| Constructor Summary | |
PushbackInputStream(InputStream in)
Creates a PushbackInputStream. |
|
| Method Summary | |
int |
available()
Returns the number of bytes that can be read. |
boolean |
markSupported()
Returns true if this stream type supports mark/reset. |
int |
read()
Reads a byte of data. |
int |
read(byte[] bytes,
int offset,
int length)
Reads into an array of bytes. |
void |
unread(int ch)
Pushes back a character. |
| Methods inherited from class java.io.FilterInputStream |
close, mark, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int pushBack
| Constructor Detail |
public PushbackInputStream(InputStream in)
in - the input stream| Method Detail |
public int read()
throws IOException
read in class FilterInputStreamIOException - If an I/O error has occurred.
public int read(byte[] bytes,
int offset,
int length)
throws IOException
read in class FilterInputStreambytes - the buffer into which the data is readoffset - the start offset of the datalength - the maximum number of bytes read
IOException - If an I/O error has occurred.
public void unread(int ch)
throws IOException
ch - the character to push back.
IOException - If an attempt to push back more than one
character is made.
public int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||