com.imaginary.util
Class DistributedIteratorImpl

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--com.imaginary.util.DistributedIteratorImpl

public class DistributedIteratorImpl
extends java.rmi.server.UnicastRemoteObject
implements DistributedIterator

Implements the DistributedIterator interface by referencing a local Iterator.
Last modified $Date: 1999/11/06 19:50:50 $

See Also:
Serialized Form

Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
DistributedIteratorImpl(com.sun.java.util.collections.Iterator src)
          Constructs a new DistributedIteratorImpl using the specified local iterator as a data source.
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
          This operation is unsupported in this implementation.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistributedIteratorImpl

public DistributedIteratorImpl(com.sun.java.util.collections.Iterator src)
                        throws java.rmi.RemoteException
Constructs a new DistributedIteratorImpl using the specified local iterator as a data source.
Parameters:
src - the local iterator
Throws:
java.rmi.RemoteException - could not export the iterator
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface DistributedIterator
Returns:
true if more elements are available in the iterator

next

public java.lang.Object next()
Specified by:
next in interface DistributedIterator
Returns:
the next element in the iterator

remove

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