com.imaginary.util
Class SerializedIterator

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

public class SerializedIterator
extends java.lang.Object
implements com.sun.java.util.collections.Iterator

Provides an Iterator interface into a stream of serialized objects.
Last modified $Date: 1999/11/06 19:50:56 $


Constructor Summary
SerializedIterator()
          Required to serialize this object.
SerializedIterator(java.io.ObjectInputStream in)
          Constructs a new SerializedIterator from the specified input stream.
 
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

SerializedIterator

public SerializedIterator()
Required to serialize this object.

SerializedIterator

public SerializedIterator(java.io.ObjectInputStream in)
Constructs a new SerializedIterator from the specified input stream.
Parameters:
in - the input stream from which objects are to be read
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface com.sun.java.util.collections.Iterator
Returns:
true if there is another object on the stream

next

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

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