Class HTMLStripCharFilter.TextSegment

java.lang.Object
org.apache.lucene.analysis.util.OpenStringBuilder
org.apache.lucene.analysis.charfilter.HTMLStripCharFilter.TextSegment
All Implemented Interfaces:
Appendable, CharSequence
Enclosing class:
HTMLStripCharFilter

private static class HTMLStripCharFilter.TextSegment extends OpenStringBuilder
  • Field Details

    • pos

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

    • 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 Details

    • 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