DistributedIterator
Iterator
Constructs a new DistributedIteratorImpl using the specified local iterator as a data source.paramsrc the local iteratorthrowsjava.rmi.RemoteException could not export the iterator super(); source = src;
DistributedIteratorImpl
super(); source = src;
returntrue if more elements are available in the iterator return source.hasNext();
return source.hasNext();
returnthe next element in the iterator Object ob = source.next(); return ob; //return source.next();
Object ob = source.next(); return ob; //return source.next();
This operation is unsupported in this implementation.throwsjava.lang.UnsupportedOperationException always thrown throw new UnsupportedOperationException("Cannot remove from a " + "distributed iterator.");
throw new UnsupportedOperationException("Cannot remove from a " + "distributed iterator.");