LineIterator, Closeable, AutoCloseable, Iterator<String>public class LineIteratorImpl extends AbstractIterator<String> implements LineIterator, Closeable
next| Constructor | Description |
|---|---|
LineIteratorImpl(LineReader lineReader) |
| Modifier and Type | Method | Description |
|---|---|---|
protected String |
advance() |
|
void |
close() |
|
String |
toString() |
hasNext, isIterating, next, peek, removeforEachRemaining, hasNext, next, removepeekpublic LineIteratorImpl(LineReader lineReader)
lineReader - The line reader whose elements are to be iterated over.protected String advance()
advance in class AbstractIterator<String>public void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOException