private static class HTMLStripCharFilter.TextSegment extends OpenStringBuilder
Modifier and Type | Field and Description |
---|---|
(package private) int |
pos
The position from which the next char will be read.
|
buf, len
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
clear()
Sets len = 0 and pos = 0.
|
(package private) boolean |
isRead()
Returns true when all characters in the text segment have been read
|
(package private) int |
nextChar()
Returns the next char in the segment.
|
(package private) void |
restart()
Sets pos = 0
|
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