Class NullCharIterator

java.lang.Object
org.apache.fop.fo.CharIterator
org.apache.fop.fo.NullCharIterator
All Implemented Interfaces:
Cloneable, Iterator

public class NullCharIterator extends CharIterator
Class providing an iterator for zero characters. Used by the Block FO.
  • Constructor Details

    • NullCharIterator

      public NullCharIterator()
      Constructor
  • Method Details

    • getInstance

      public static CharIterator getInstance()
      Obtain the singleton instance of the null character iterator.
      Returns:
      the char iterator
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator
      Specified by:
      hasNext in class CharIterator
    • nextChar

      public char nextChar() throws NoSuchElementException
      Specified by:
      nextChar in class CharIterator
      Returns:
      the character that is the next character in the collection
      Throws:
      NoSuchElementException - if there are no more characters (test for this condition with java.util.Iterator.hasNext()).