1 16 package org.apache.myfaces.util; 17 18 import java.util.Enumeration ; 19 import java.util.Iterator ; 20 21 25 public class EnumerationIterator 26 implements Iterator  27 { 28 30 private Enumeration _enumeration; 31 32 public EnumerationIterator(Enumeration enumeration) 33 { 34 _enumeration = enumeration; 35 } 36 37 public boolean hasNext() 38 { 39 return _enumeration.hasMoreElements(); 40 } 41 42 public Object next() 43 { 44 return _enumeration.nextElement(); 45 } 46 47 public void remove() 48 { 49 throw new UnsupportedOperationException (this.getClass().getName() + " UnsupportedOperationException"); 50 } 51 } 52 | Popular Tags |