public final class CloseableLineIterator extends org.apache.commons.io.LineIterator implements CloseableIterator<String>
Constructor and Description |
---|
CloseableLineIterator(Reader reader)
Construct.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
closeQuietly, hasNext, isValidLine, next, nextLine, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transform
forEachRemaining, hasNext, next, remove
public CloseableLineIterator(Reader reader) throws IllegalArgumentException
reader
- Reader to pass to LineIterator.LineIterator(java.io.Reader)
IllegalArgumentException
- Propagated from LineIterator.LineIterator(java.io.Reader)
public void close()
close
in interface CloseableIterator<String>
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.commons.io.LineIterator