public interface Input extends Iterable<Line>, 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.
|
Iterator<Line> |
iterator()
Returns an immutable iterator over all lines returned by this input
object.
|
Line |
readLine()
Reads the next line.
|
forEach, spliterator
boolean hasMoreLines()
Line readLine()
Iterator<Line> iterator()
void close()
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.