public class IPushbackReader extends Object
| Constructor and Description |
|---|
IPushbackReader(Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
int |
getQueueSize()
get the buffer size - the number of buffered data
|
int |
read()
read the next int from the stream this will check the buffer queue first
and take the first item of the buffer as the result
|
int |
read(char[] cbuf,
int off,
int len)
read the specified block from the stream
|
void |
unread(char[] cbuf,
int off,
int len)
unread a block from a char array to the stream
|
void |
unread(int data)
unread the specified data to the stream
push the data back to the queue in fact, you know
|
public IPushbackReader(Reader reader)
public int read()
throws IOException
IOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
IOExceptionread()public void unread(int data)
public int getQueueSize()
public void unread(char[] cbuf,
int off,
int len)
unread(int)Copyright © 2017. All Rights Reserved.