public interface Input extends java.lang.Iterable<Line>, java.lang.AutoCloseable
| 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.
|
java.util.Iterator<Line> |
iterator()
Returns an immutable iterator over all lines returned by this input
object.
|
Line |
readLine()
Reads the next line.
|
boolean hasMoreLines()
Line readLine()
java.util.Iterator<Line> iterator()
iterator in interface java.lang.Iterable<Line>void close()
close in interface java.lang.AutoCloseableCopyright © 2021. All Rights Reserved.