public static final class FileLinesByteArrayCollection.FileLinesIterator extends Object implements Iterator<byte[]>, SafelyCloseable
FileLinesByteArrayCollection
.
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() |
byte[] |
next() |
void |
remove() |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public void close()
close
in interface Closeable
close
in interface AutoCloseable