Class CloseableIterationIterator<E>

java.lang.Object
org.eclipse.rdf4j.common.iterator.CloseableIterationIterator<E>
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<E>

public class CloseableIterationIterator<E> extends Object implements Iterator<E>, Closeable
Wraps an Iteration as an Iterator. If the Iteration is a CloseableIteration then this.close() will close it and it will also be automatically closed when this Iterator is exhausted.
Author:
Mark