Package it.unimi.dsi.io
Class FileLinesCollection.FileLinesIterator
- java.lang.Object
-
- it.unimi.dsi.io.FileLinesCollection.FileLinesIterator
-
- All Implemented Interfaces:
SafelyCloseable
,java.io.Closeable
,java.lang.AutoCloseable
,java.util.Iterator<MutableString>
- Enclosing class:
- FileLinesCollection
@Deprecated public static final class FileLinesCollection.FileLinesIterator extends java.lang.Object implements java.util.Iterator<MutableString>, SafelyCloseable
Deprecated.Please useFileLinesMutableStringIterable.iterator(java.io.InputStream, java.nio.charset.Charset, Class)
; thezipped
option of this class can be simulated by passing aGZIPInputStream
as decompressor.An iterator over the lines of aFileLinesCollection
.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 void
close()
Deprecated.protected void
finalize()
Deprecated.boolean
hasNext()
Deprecated.MutableString
next()
Deprecated.void
remove()
Deprecated.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Deprecated.- Specified by:
hasNext
in interfacejava.util.Iterator<MutableString>
-
next
public MutableString next()
Deprecated.- Specified by:
next
in interfacejava.util.Iterator<MutableString>
-
remove
public void remove()
Deprecated.- Specified by:
remove
in interfacejava.util.Iterator<MutableString>
-
close
public void close()
Deprecated.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
finalize
protected void finalize() throws java.lang.Throwable
Deprecated.- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-