Class FileLinesByteArrayIterable.FileLinesIterator

java.lang.Object
it.unimi.dsi.io.FileLinesByteArrayIterable.FileLinesIterator
All Implemented Interfaces:
SafelyCloseable, Closeable, AutoCloseable, Iterator<byte[]>
Enclosing class:
FileLinesByteArrayIterable

public static final class FileLinesByteArrayIterable.FileLinesIterator extends Object implements Iterator<byte[]>, SafelyCloseable
An iterator over the lines of a FileLinesByteArrayIterable.

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.