1 23 24 package org.enhydra.xml.xmlc.misc; 25 26 import java.util.Iterator ; 27 import java.util.NoSuchElementException ; 28 29 32 public class ReadIterator implements Iterator { 33 36 private Iterator fIter; 37 38 42 public ReadIterator(Iterator iter) { 43 fIter = iter; 44 } 45 46 53 public boolean hasNext() { 54 return fIter.hasNext(); 55 } 56 57 61 public Object next() { 62 return fIter.next(); 63 } 64 65 70 public void remove() { 71 throw new UnsupportedOperationException ("Modification through this iterator is not allowed"); 72 } 73 } 74 | Popular Tags |