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.
public 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 Closeable
close
in interface AutoCloseable
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.