Class HTMLStripCharFilter.TextSegment
- java.lang.Object
-
- org.apache.lucene.analysis.util.OpenStringBuilder
-
- org.apache.lucene.analysis.charfilter.HTMLStripCharFilter.TextSegment
-
- All Implemented Interfaces:
java.lang.Appendable,java.lang.CharSequence
- Enclosing class:
- HTMLStripCharFilter
private static class HTMLStripCharFilter.TextSegment extends OpenStringBuilder
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intposThe position from which the next char will be read.-
Fields inherited from class org.apache.lucene.analysis.util.OpenStringBuilder
buf, len
-
-
Constructor Summary
Constructors Constructor Description TextSegment(char[] buffer, int length)Wraps the given buffer and sets this.len to the given length.TextSegment(int size)Allocates an internal buffer of the given size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidclear()Sets len = 0 and pos = 0.(package private) booleanisRead()Returns true when all characters in the text segment have been read(package private) intnextChar()Returns the next char in the segment.(package private) voidrestart()Sets pos = 0-
Methods inherited from class org.apache.lucene.analysis.util.OpenStringBuilder
append, append, append, capacity, charAt, flush, getArray, length, reserve, reset, resize, set, setCharAt, setLength, size, subSequence, toCharArray, toString, unsafeWrite, unsafeWrite, unsafeWrite, write, write, write, write, write, write
-
-