public class LineCloseableIterator extends Object implements CloseableIterator<String>
Reader to CloseableIterator which can be read on demand. Each element is
a trimmed line.| Constructor and Description |
|---|
LineCloseableIterator(java.io.Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
String |
next() |
public boolean hasNext()
hasNext in interface java.util.Iterator<String>public String next()
next in interface java.util.Iterator<String>public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface AutoCloseablejava.io.IOException