1 17 18 19 20 package org.apache.fop.fo; 21 22 import java.util.Iterator ; 23 import java.util.NoSuchElementException ; 24 25 30 public abstract class CharIterator implements Iterator , Cloneable { 31 32 35 public abstract boolean hasNext(); 36 37 42 public abstract char nextChar() throws NoSuchElementException ; 43 44 47 public Object next() throws NoSuchElementException { 48 return new Character (nextChar()); 49 } 50 51 54 public void remove() { 55 throw new UnsupportedOperationException (); 56 } 57 58 59 64 public void replaceChar(char c) { 65 } 66 67 70 public Object clone() { 71 try { 72 return super.clone(); 73 } catch (CloneNotSupportedException ex) { 74 return null; 75 } 76 } 77 } 78 79 | Popular Tags |