Interface IOIterator<T>
- Type Parameters:
T-
- All Superinterfaces:
AutoCloseable,Closeable
An Iterator-like interface that is intentionally not extending Iterator. This is because it is Closeable
and we never want to lose track of the fact that the object needs to be closed.
-
Method Summary
-
Method Details
-
hasNext
boolean hasNext() -
next
- Throws:
IOException
-
close
void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-