public final class ReaderInput extends AbstractInput
CharacterInput based on a Reader.deque| Constructor and Description |
|---|
ReaderInput(java.io.Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
directRead()
Tries to parse the next character without taking care of the peek deque.
|
protected char |
directReadChar()
Tries to parse the next character without taking care of the peek deque.
|
CharsWrapper |
read(int n)
Reads the next n characters, if possible.
|
CharsWrapper |
readChars(int n)
Reads the next n characters.
|
consumeDeque, peek, peek, peekChar, peekChar, pushBack, read, readChar, readCharsUntil, readUntil, skipPeeksclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAndSkip, readCharAndSkipprotected int directRead()
AbstractInputdirectRead in class AbstractInputprotected char directReadChar()
throws ParsingException
AbstractInputdirectReadChar in class AbstractInputParsingException - if the EOS has been reachedpublic CharsWrapper read(int n)
CharacterInputn - the number of characters to parsepublic CharsWrapper readChars(int n)
CharacterInputn - the number of characters to parse