public static final class FileLinesList.FileLinesIterator extends AbstractObjectListIterator<MutableString> implements SafelyCloseable
FileLinesList. 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.| Modifier | Constructor and Description |
|---|---|
protected |
FileLinesList.FileLinesIterator(FileLinesList fileLinesList,
int index,
FastBufferedInputStream inputStream,
CharsetDecoder decoder,
ByteBuffer byteBuffer,
CharBuffer charBuffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
boolean |
hasNext() |
boolean |
hasPrevious() |
MutableString |
next() |
int |
nextIndex() |
MutableString |
previous() |
int |
previousIndex() |
add, setbackremove, skipclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremovebackskipprotected FileLinesList.FileLinesIterator(FileLinesList fileLinesList, int index, FastBufferedInputStream inputStream, CharsetDecoder decoder, ByteBuffer byteBuffer, CharBuffer charBuffer)
public boolean hasNext()
hasNext in interface Iterator<MutableString>hasNext in interface ListIterator<MutableString>public boolean hasPrevious()
hasPrevious in interface BidirectionalIterator<MutableString>hasPrevious in interface ListIterator<MutableString>public MutableString next()
next in interface Iterator<MutableString>next in interface ListIterator<MutableString>public MutableString previous()
previous in interface BidirectionalIterator<MutableString>previous in interface ListIterator<MutableString>public int nextIndex()
nextIndex in interface ListIterator<MutableString>public int previousIndex()
previousIndex in interface ListIterator<MutableString>public void close()
close in interface Closeableclose in interface AutoCloseable