Class CloseableIteratorIteration<E>
java.lang.Object
org.eclipse.rdf4j.common.iteration.CloseableIteratorIteration<E>
- All Implemented Interfaces:
 AutoCloseable, Iterator<E>, CloseableIteration<E>
An Iteration that can convert an 
Iterator to a CloseableIteration.- 
Field Summary
Fields inherited from interface CloseableIteration
EMPTY_STATEMENT_ITERATION - 
Constructor Summary
ConstructorsConstructorDescriptionCloseableIteratorIteration(Iterator<? extends E> iter) Creates a CloseableIteratorIteration that wraps the supplied iterator. - 
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseableIteration
streamMethods inherited from interface Iterator
forEachRemaining 
- 
Constructor Details
- 
CloseableIteratorIteration
 
 - 
 - 
Method Details
- 
hasNext
 - 
next
 - 
remove
 - 
handleClose
protected void handleClose() - 
isClosed
public final boolean isClosed()Checks whether this CloseableIteration has been closed.- Returns:
 - true if the CloseableIteration has been closed, false otherwise.
 
 - 
close
public final void close()CallshandleClose()upon first call and makes sure the resource closures are only executed once.- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseableIteration<E>
 
 -