private class FastTokenizer.DribbleReader
extends Reader
| Modifier and Type | Field and Description |
|---|---|
private char[] |
buf
Buffer of characters currently being dribbled
|
private char[] |
fakeChars
Character array version of
fakeStr |
(package private) static String |
fakeStr
String used to mark the end of the dribbled text
|
private int |
max
Max # of chars to dribble from
buf |
private int |
pos
Current position within
buf |
| Modifier | Constructor and Description |
|---|---|
private |
DribbleReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Does nothing... required by interface
|
int |
read(char[] cbuf,
int off,
int len)
Dribble some characters.
|
void |
setChars(char[] buf,
int pos,
int max)
Establish a set of characters to dribble out
|
static final String fakeStr
private final char[] fakeChars
fakeStrprivate char[] buf
private int pos
bufprivate int max
bufpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionpublic void setChars(char[] buf,
int pos,
int max)
public int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOException