public class ReaderInput extends AbstractInput
Reader forming the base for most input
devices; handles parsing and recognition of lines.| Modifier | Constructor and Description |
|---|---|
|
ReaderInput(java.io.Reader reader)
Constructor with reader.
|
protected |
ReaderInput(java.io.Reader reader,
boolean closeReaderOnClose)
Constructor with reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close underlying resources if any, as for instance the source file.
|
boolean |
hasMoreLines()
Returns true if there are more lines to be read.
|
Line |
readLine()
Reads the next line.
|
iteratorpublic ReaderInput(java.io.Reader reader)
reader - the reader forming the basis of this input device.protected ReaderInput(java.io.Reader reader, boolean closeReaderOnClose)
reader - the reader forming the basis of this input device.closeReaderOnClose - if true the reader will be closed when close() is invokedpublic boolean hasMoreLines()
Inputpublic Line readLine()
InputCopyright © 2021. All Rights Reserved.