Class CloseableIterationIterator<E>
java.lang.Object
org.eclipse.rdf4j.common.iterator.CloseableIterationIterator<E>
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<E>
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
-
Constructor Summary
ConstructorDescriptionCloseableIterationIterator
(Iteration<? extends E, ? extends RuntimeException> iteration) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
CloseableIterationIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-