Package it.unimi.dsi.big.io
Class FileLinesByteArrayCollection.FileLinesIterator
- java.lang.Object
-
- it.unimi.dsi.big.io.FileLinesByteArrayCollection.FileLinesIterator
-
- All Implemented Interfaces:
SafelyCloseable,java.io.Closeable,java.lang.AutoCloseable,java.util.Iterator<byte[]>
- Enclosing class:
- FileLinesByteArrayCollection
@Deprecated public static final class FileLinesByteArrayCollection.FileLinesIterator extends java.lang.Object implements java.util.Iterator<byte[]>, SafelyCloseable
Deprecated.Please useFileLinesByteArrayIterable.iterator(java.io.InputStream, Class, EnumSet); thezippedoption of this class can be simulated by passing aGZIPInputStreamas decompressor.An iterator over the lines of aFileLinesByteArrayCollection.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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.protected voidfinalize()Deprecated.booleanhasNext()Deprecated.byte[]next()Deprecated.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Deprecated.- Specified by:
hasNextin interfacejava.util.Iterator<byte[]>
-
next
public byte[] next()
Deprecated.- Specified by:
nextin interfacejava.util.Iterator<byte[]>
-
close
public void close()
Deprecated.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
finalize
protected void finalize() throws java.lang.ThrowableDeprecated.- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-