1 17 18 19 20 package org.apache.fop.fo; 21 22 import java.util.NoSuchElementException ; 23 24 27 public class NullCharIterator extends CharIterator { 28 29 private static CharIterator instance; 30 31 public static CharIterator getInstance() { 32 if (instance == null) { 33 instance = new NullCharIterator(); 34 } 35 return instance; 36 } 37 38 41 public NullCharIterator() { 42 } 44 45 46 public boolean hasNext() { 47 return false; 48 } 49 50 51 public char nextChar() throws NoSuchElementException { 52 throw new NoSuchElementException (); 53 } 54 55 } 56 57 | Popular Tags |