public abstract class AbstractCursorIterator<T> extends Object implements org.mule.runtime.api.streaming.object.CursorIterator<T>
CursorIterator.
Provides template methods and enforces default behavior.
| Constructor and Description |
|---|
AbstractCursorIterator(org.mule.runtime.api.streaming.object.CursorIteratorProvider provider)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertNotClosed() |
void |
close() |
protected abstract void |
doClose() |
protected abstract T |
doNext(long position) |
long |
getPosition() |
org.mule.runtime.api.streaming.object.CursorIteratorProvider |
getProvider() |
boolean |
isReleased() |
T |
next() |
void |
remove() |
void |
seek(long position) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNextpublic AbstractCursorIterator(org.mule.runtime.api.streaming.object.CursorIteratorProvider provider)
provider - the provider which opened this cursorprotected abstract T doNext(long position)
public long getPosition()
getPosition in interface org.mule.runtime.api.streaming.Cursorpublic void seek(long position)
throws IOException
seek in interface org.mule.runtime.api.streaming.CursorIOExceptionpublic final void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.mule.runtime.api.streaming.CursorIOExceptionprotected abstract void doClose()
throws IOException
IOExceptionpublic boolean isReleased()
isReleased in interface org.mule.runtime.api.streaming.Cursorpublic org.mule.runtime.api.streaming.object.CursorIteratorProvider getProvider()
getProvider in interface org.mule.runtime.api.streaming.Cursorprotected void assertNotClosed()
public void remove()
remove in interface Iterator<T>UnsupportedOperationException - Removing from a stream is not supportedCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.