public static final class FileLinesCollection.FileLinesIterator extends Object implements Iterator<MutableString>, SafelyCloseable
FileLinesCollection.
Instances of this class open an InputStream, and thus should be closed after
usage. A “safety-net” finaliser tries to take care of the cases in which
closing an instance is impossible. An exhausted iterator, however, will be closed automagically.
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
boolean |
hasNext() |
MutableString |
next() |
void |
remove() |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic boolean hasNext()
hasNext in interface Iterator<MutableString>public MutableString next()
next in interface Iterator<MutableString>public void remove()
remove in interface Iterator<MutableString>public void close()
close in interface Closeableclose in interface AutoCloseable