- Type Parameters:
E -
- All Superinterfaces:
- Iterator<E>
public interface CloseableIterator<E>
extends Iterator<E>
Iterator that closes a resource if the decorated iterator is exhausted.
If you stop iterating before the iterator is exhausted, you have to call close yourself