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 aCloseableIterationas anIterator.- Author:
- Mark
-
-
Constructor Summary
Constructors Constructor Description CloseableIterationIterator(CloseableIteration<? extends E,? extends RuntimeException> iteration)CloseableIterationIterator(Iteration<? extends E,? extends RuntimeException> iteration)Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasNext()Enext()voidremove()-
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 Detail
-
CloseableIterationIterator
@Deprecated(since="4.1.0", forRemoval=true) public CloseableIterationIterator(Iteration<? extends E,? extends RuntimeException> iteration)
Deprecated, for removal: This API element is subject to removal in a future version.
-
CloseableIterationIterator
public CloseableIterationIterator(CloseableIteration<? extends E,? extends RuntimeException> iteration)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-