| java.io.PushbackReader uk.org.ponder.streamutil.read.LexReader
LexReader | public class LexReader extends PushbackReader (Code) | | A PushbackReader with exactly one byte of pushback, which silently swallows any
EOF exceptions. Instead, EOF is reported by returning the value (char)-1 which
Unicode defines to be nothing useful. EOF may be independently verified by
checking the EOF() method.
author: Bosmon |
Method Summary | |
public boolean | EOF() Checks if end of the wrapped stream has been reached. | public char | get() Reads a single character from the stream and returns it. |
LexReader | public LexReader(Reader r)(Code) | | Creates a LexReader wrapping the supplied Reader
|
EOF | public boolean EOF()(Code) | | Checks if end of the wrapped stream has been reached.
true if the stream has reached the end of file. |
get | public char get() throws IOException(Code) | | Reads a single character from the stream and returns it. If the stream
has reached the end of file, return the value (char)-1.
The character that was read. throws: IOException - If a read error other than EOF occurs. |
|
|