public interface CharSource
Modifier and Type | Method and Description |
---|---|
void |
pushBack(java.lang.StringBuilder from,
int startAt)
moves the tail of
buf starting with character
index startAt back onto the character source while
deleting them from the given StringBuilder . |
int |
read()
returns a single character or -1 to indicate end of file.
|
int read() throws java.io.IOException
java.io.IOException
void pushBack(java.lang.StringBuilder from, int startAt)
moves the tail of buf
starting with character
index startAt
back onto the character source while
deleting them from the given StringBuilder
. The data
is pushed from back to front such that a sequence of
read/pushBack/read will read two times the same string.