public static interface LargeAsciiTable.AsciiTableIterator
extends java.util.Iterator<java.lang.String>, java.lang.AutoCloseable
LargeAsciiTable
.
Since LargeAsciiTable
may need a temporary file, an input stream
could be used to iterate over this table. Hence the importance to close
this iterator after use.
The implementation of the interface AutoCloseable
helps a lot
with that as a such iterator can be closed automatically by a try
statement if initialised inside it:
try(LargeAsciiTable.AsciiTableIterator
lineIt =getIterator()
){ ... }
Note:
No external class should have to create any instance of
LargeAsciiTable.AsciiTableIterator
. Instead, it is strongly recommended to
use the function LargeAsciiTable.getIterator()
.
Modifier and Type | Method and Description |
---|---|
void |
close() |