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
fakeStr
private char[] buf
private int pos
buf
private int max
buf
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public void setChars(char[] buf, int pos, int max)
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException