Class CharacterBuffer
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.CharacterBuffer
-
public class CharacterBuffer extends java.lang.ObjectThis class represents a variable-length buffer for characters.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<char[]>arrayOfArraysprotected static intarrayShiftprotected static intarraySizeprotected char[]currentBufferprotected intcurrentIndexprotected inttotalChars
-
Constructor Summary
Constructors Constructor Description CharacterBuffer()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendChar(char b)Add a char to the buffer at the end.voidclear()Clear the buffer.charreadChar(int position)Read a byte from the buffer from the specified place.intsize()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
-
-