org.apache.struts.util

Class IteratorAdapter

Implemented Interfaces:
Iterator

public class IteratorAdapter
extends java.lang.Object
implements Iterator

Utility method for converting Enumeration to an Iterator class. If you attempt to remove() an Object from the iterator, it will throw an UnsupportedOperationException. Added for use by TagLib so Enumeration can be supported
Version:
$Rev: 164530 $ $Date: 2005-04-25 04:11:07 +0100 (Mon, 25 Apr 2005) $

Field Summary

private Enumeration
e

Constructor Summary

IteratorAdapter(Enumeration e)

Method Summary

boolean
hasNext()
Object
next()
void
remove()

Field Details

e

private Enumeration e

Constructor Details

IteratorAdapter

public IteratorAdapter(Enumeration e)

Method Details

hasNext

public boolean hasNext()

next

public Object next()

remove

public void remove()

Copyright B) 2000-2007 - The Apache Software Foundation