public class LineIteratorImpl extends AbstractIterator<String> implements LineIterator, Closeable
next
Constructor and Description |
---|
LineIteratorImpl(LineReader lineReader) |
Modifier and Type | Method and Description |
---|---|
protected String |
advance() |
void |
close() |
hasNext, isIterating, next, peek, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
peek
forEachRemaining, hasNext, next, remove
public 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 Closeable
close
in interface AutoCloseable
IOException