public interface CloseableIterator<E>
extends java.util.Iterator<E>, java.io.Closeable
An iterator over a closeable resource that can and should be closed at the
end of iteration. Each method from the Iterator interface should
throw an IllegalStateException if called once the close method
is called.
See Also:
Iterator,
Closeable
Method Summary
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
Methods inherited from interface java.io.Closeable