com.imaginary.util
Class ClientIterator

java.lang.Object
  |
  +--com.imaginary.util.ClientIterator

public class ClientIterator
extends java.lang.Object
implements com.sun.java.util.collections.Iterator, java.io.Serializable

The client portion of the distributed iterator support. This class implements the Iterator interface for a distributed iterator. Using distributed iterators, you can ship a collection across the network one element at a time, thus transmitting only the data required by the application. Furthermore, by avoiding transmitting the entire collection, you enable access to the initial elements of the collection quicker than would be possible through raw serialization of a collection.
Last modified $Date: 1999/11/06 19:50:49 $

See Also:
DistributedIterator, Serialized Form

Constructor Summary
ClientIterator()
          Required constructor for serialization.
ClientIterator(DistributedIterator src)
          Constructs a new ClientIterator using the named DistributedIterator as its remote source.
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
          This operation is unsupported in this implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientIterator

public ClientIterator()
Required constructor for serialization.

ClientIterator

public ClientIterator(DistributedIterator src)
Constructs a new ClientIterator using the named DistributedIterator as its remote source.
Parameters:
src - the server-based distributed iterator
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface com.sun.java.util.collections.Iterator
Returns:
true if more elements are available in the iterator

next

public java.lang.Object next()
Specified by:
next in interface com.sun.java.util.collections.Iterator
Returns:
the next element in the iterator

remove

public void remove()
This operation is unsupported in this implementation.
Specified by:
remove in interface com.sun.java.util.collections.Iterator
Throws:
java.lang.UnsupportedOperationException - always thrown