Package org.apache.fop.fo
Class NullCharIterator
- java.lang.Object
-
- org.apache.fop.fo.CharIterator
-
- org.apache.fop.fo.NullCharIterator
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Iterator
public class NullCharIterator extends CharIterator
Class providing an iterator for zero characters. Used by the Block FO.
-
-
Constructor Summary
Constructors Constructor Description NullCharIterator()Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CharIteratorgetInstance()Obtain the singleton instance of the null character iterator.booleanhasNext()charnextChar()-
Methods inherited from class org.apache.fop.fo.CharIterator
clone, next, remove, replaceChar
-
-
-
-
Method Detail
-
getInstance
public static CharIterator getInstance()
Obtain the singleton instance of the null character iterator.- Returns:
- the char iterator
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator- Specified by:
hasNextin classCharIterator
-
nextChar
public char nextChar() throws java.util.NoSuchElementException- Specified by:
nextCharin classCharIterator- Returns:
- the character that is the next character in the collection
- Throws:
java.util.NoSuchElementException- if there are no more characters (test for this condition with java.util.Iterator.hasNext()).
-
-