public class LineCloseableIterator extends java.lang.Object implements CloseableIterator<java.lang.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() |
java.lang.String |
next() |
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.String>public java.lang.String next()
next in interface java.util.Iterator<java.lang.String>public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException