Class FOText.TextCharIterator

  • All Implemented Interfaces:
    java.lang.Cloneable, java.util.Iterator
    Enclosing class:
    FOText

    private class FOText.TextCharIterator
    extends CharIterator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      char nextChar()
      void remove()
      void replaceChar​(char c)
      Replace the current character managed by the iterator with a specified character?
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • currentPosition

        private int currentPosition
      • canRemove

        private boolean canRemove
      • canReplace

        private boolean canReplace
    • Constructor Detail

      • TextCharIterator

        public TextCharIterator()
    • Method Detail

      • hasNext

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

        public char nextChar()
        Specified by:
        nextChar in class CharIterator
        Returns:
        the character that is the next character in the collection
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator
        Overrides:
        remove in class CharIterator
      • replaceChar

        public void replaceChar​(char c)
        Replace the current character managed by the iterator with a specified character?
        Overrides:
        replaceChar in class CharIterator
        Parameters:
        c - character