public class ReaderInput extends AbstractInput
| Modifier | Constructor and Description |
|---|---|
|
ReaderInput(Reader reader)
Constructor with reader.
|
protected |
ReaderInput(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.
|
iteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ReaderInput(Reader reader)
reader - the reader forming the basis of this input device.protected ReaderInput(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 © 2025. All rights reserved.