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.
|
iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public 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()
Input
public Line readLine()
Input
Copyright © 2024. All rights reserved.