Class HTMLStripCharFilter.TextSegment

  • All Implemented Interfaces:
    java.lang.Appendable, java.lang.CharSequence
    Enclosing class:
    HTMLStripCharFilter

    private static class HTMLStripCharFilter.TextSegment
    extends OpenStringBuilder
    • Field Detail

      • pos

        int pos
        The position from which the next char will be read.
    • Constructor Detail

      • TextSegment

        TextSegment​(char[] buffer,
                    int length)
        Wraps the given buffer and sets this.len to the given length.
      • TextSegment

        TextSegment​(int size)
        Allocates an internal buffer of the given size.
    • Method Detail

      • clear

        void clear()
        Sets len = 0 and pos = 0.
      • restart

        void restart()
        Sets pos = 0
      • nextChar

        int nextChar()
        Returns the next char in the segment.
      • isRead

        boolean isRead()
        Returns true when all characters in the text segment have been read