net.spy.util
Class Enumeriterator

java.lang.Object
  extended bynet.spy.util.Enumeriterator
All Implemented Interfaces:
Iterator

public class Enumeriterator
extends Object
implements Iterator

Wrap an Enumeration to provide an Iterator interface.


Constructor Summary
Enumeriterator(Enumeration src)
          Get an instance of Enumeriterator.
 
Method Summary
 boolean hasNext()
          Determine whether this Iterator has more elements.
 Object next()
          Get the next object.
 void remove()
          NOT IMPLEMENTED.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Enumeriterator

public Enumeriterator(Enumeration src)
Get an instance of Enumeriterator.

Method Detail

hasNext

public boolean hasNext()
Determine whether this Iterator has more elements.

Specified by:
hasNext in interface Iterator
Returns:
true if another call to next() will return an object

next

public Object next()
Get the next object.

Specified by:
next in interface Iterator
Returns:
the next Object

remove

public void remove()
NOT IMPLEMENTED.

Specified by:
remove in interface Iterator