Class CharacterBuffer
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.CharacterBuffer
-
public class CharacterBuffer extends java.lang.Object
This class represents a variable-length buffer for characters.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<char[]>
arrayOfArrays
protected static int
arrayShift
protected static int
arraySize
protected char[]
currentBuffer
protected int
currentIndex
protected int
totalChars
-
Constructor Summary
Constructors Constructor Description CharacterBuffer()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendChar(char b)
Add a char to the buffer at the end.void
clear()
Clear the buffer.char
readChar(int position)
Read a byte from the buffer from the specified place.int
size()
Get the current buffer length.
-
-
-
Field Detail
-
arraySize
protected static final int arraySize
- See Also:
- Constant Field Values
-
arrayShift
protected static final int arrayShift
- See Also:
- Constant Field Values
-
arrayOfArrays
protected final java.util.List<char[]> arrayOfArrays
-
totalChars
protected int totalChars
-
currentIndex
protected int currentIndex
-
currentBuffer
protected char[] currentBuffer
-
-