public class CharacterBuffer
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
CharacterBuffer()
Constructor
|
Modifier and Type | Method and 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.
|
protected static final int arraySize
protected static final int arrayShift
protected final java.util.List<char[]> arrayOfArrays
protected int totalChars
protected int currentIndex
protected char[] currentBuffer