public class BufferIterator extends java.lang.Object implements RemoteIterator, java.io.Serializable
| Constructor and Description |
|---|
BufferIterator(java.lang.Object[] buffer,
long size,
RemoteIterator remote)
Creates a new buffered remote iterator.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getSize()
Returns the cached size of the iterator.
|
java.lang.Object[] |
nextObjects()
Returns the currently buffered elements and fills in the buffer
with next elements.
|
void |
skip(long items)
Skips the given number of elements.
|
public BufferIterator(java.lang.Object[] buffer,
long size,
RemoteIterator remote)
buffer - first elements in the iteratorsize - total iterator sizeremote - reference to the remaining iteratorpublic long getSize()
getSize in interface RemoteIterator-1 if unknownRemoteIterator.getSize()public void skip(long items)
throws java.lang.IllegalArgumentException,
java.util.NoSuchElementException,
java.rmi.RemoteException
skip in interface RemoteIteratoritems - number of items to skipjava.lang.IllegalArgumentException - if items is negativejava.util.NoSuchElementException - if skipped past the last elementjava.rmi.RemoteException - on RMI errorsRemoteIterator.skip(long)public java.lang.Object[] nextObjects()
throws java.rmi.RemoteException
nextObjects in interface RemoteIteratornull if the iterator has endedjava.rmi.RemoteException - on RMI errorsRemoteIterator.nextObjects()"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"