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, remove
forEachRemaining, hasNext, next, remove
peek
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 AutoCloseable
close
in interface Closeable
IOException