public interface IOIterator<T> extends Closeable
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns
true if the iteration has more elements. |
T |
next()
Returns the next element in the iteration.
|
boolean hasNext() throws IOException
true
if the iteration has more elements.
(In other words, returns true
if next()
would
return an element rather than throwing an exception.)true
if the iteration has more elementsIOException
- on read errorT next() throws IOException
IOException
- on read errorNoSuchElementException
- if the iteration has no more elements