|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectReader
FastTokenizer.DribbleReader
private class FastTokenizer.DribbleReader
This class is used, when the fast tokenizer encounters a questionable situation, to dribble out characters to a standard tokenizer that can do a more complete job.
Field Summary | |
---|---|
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 |
Fields inherited from class Reader |
---|
lock |
Constructor Summary | |
---|---|
private |
FastTokenizer.DribbleReader()
|
Method Summary | |
---|---|
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 |
Methods inherited from class Reader |
---|
mark, markSupported, read, read, read, ready, reset, skip |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final String fakeStr
private final char[] fakeChars
fakeStr
private char[] buf
private int pos
buf
private int max
buf
Constructor Detail |
---|
private FastTokenizer.DribbleReader()
Method Detail |
---|
public void close() throws IOException
close
in interface Closeable
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |