BaseItem, BufferItem, java.lang.CharSequenceCharacterReader, TokenBufferpublic class CharacterBuffer extends BufferedBuffer implements java.lang.CharSequence, BaseItem
ENDLINE, position, STOPCHARSJSON, STOPCHARSXML, STOPCHARSXMLENDlengthQUOTES, SPACE| Constructor | Description |
|---|---|
CharacterBuffer() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
add(java.lang.Object... values) |
Add Elements to List or KeyValue
if param Modulo 2 the Params can be Key,Value
or add all Values to List
|
byte |
byteAt(int index) |
|
char |
charAt(int index) |
Returns the
char value in this sequence at the specified index. |
static CharacterBuffer |
create(java.lang.CharSequence value) |
|
boolean |
endsWith(java.lang.CharSequence string,
boolean ignoreCase) |
|
boolean |
equals(java.lang.CharSequence other) |
|
boolean |
equalsIgnoreCase(java.lang.CharSequence other) |
|
double |
equalsLevenshtein(CharacterBuffer t) |
Get Levenstein distance
|
boolean |
equalsText(char... other) |
|
char |
getChar() |
Get the next character in the source string.
|
CharacterBuffer |
getNewList(boolean keyValue) |
|
java.lang.String |
getStringPart(java.lang.Character start,
java.lang.Character end) |
get the () values
|
int |
indexOf(int ch) |
|
int |
indexOf(int ch,
int fromIndex) |
|
int |
indexOf(java.lang.CharSequence value) |
|
int |
indexOf(java.lang.CharSequence str,
int fromIndex) |
|
CharacterBuffer |
insert(int offset,
java.lang.String values) |
|
boolean |
isEmptyCharacter() |
|
int |
lastIndexOf(char ch) |
|
void |
printError(java.lang.String msg) |
|
int |
remaining() |
Returns the number of elements between the current position and the limit.
|
char |
remove(int position) |
|
void |
replace(char search,
char replace) |
|
boolean |
replace(int start,
int end,
java.lang.String replace) |
|
boolean |
replace(java.lang.String search,
java.lang.String replace) |
|
CharacterBuffer |
rtrim(char... items) |
|
CharacterBuffer |
set(char value) |
Init the new CharacterBuffer
|
CharacterBuffer |
set(java.lang.CharSequence value) |
Init the new CharList
|
void |
setNextString(java.lang.CharSequence property,
int pos) |
|
int |
size() |
Get the Size of Elements
|
boolean |
startsWith(java.lang.CharSequence prefix) |
|
boolean |
startsWith(java.lang.CharSequence prefix,
int toffset,
boolean ignoreCase) |
|
CharacterBuffer |
subSequence(int start,
int end) |
Returns a new character sequence that is a subsequence of this sequence.
|
char[] |
toCharArray() |
|
java.lang.String |
toCurrentString() |
|
java.lang.String |
toString() |
Convert Element to String
|
java.lang.String |
toString(Converter converter) |
Convert Element to String
|
CharacterBuffer |
trim() |
|
CharacterBuffer |
trimEnd(int pos) |
|
void |
trimSize() |
|
CharacterBuffer |
trimStart(int pos) |
|
CharacterBuffer |
with(byte[] values) |
Init the new CharacterBuffer
|
CharacterBuffer |
with(byte[] values,
int start,
int length) |
Init the new CharList
|
CharacterBuffer |
with(char src) |
Init the new CharList
|
CharacterBuffer |
with(char[] values,
int start,
int length) |
Init the new CharList
|
CharacterBuffer |
with(char[] values,
int start,
int end,
boolean copy) |
Init the new CharList
|
CharacterBuffer |
with(int value) |
|
CharacterBuffer |
with(long value) |
|
CharacterBuffer |
with(java.lang.CharSequence... items) |
Init the new CharacterBuffer
|
CharacterBuffer |
with(java.lang.CharSequence values,
int start,
int end) |
Init the new CharacterBuffer
|
CharacterBuffer |
withBufferLength(int len) |
|
CharacterBuffer |
withCollection(java.lang.String splitter,
java.lang.Object... values) |
|
CharacterBuffer |
withLength(int len) |
|
CharacterBuffer |
withLine(java.lang.CharSequence value) |
|
CharacterBuffer |
withObjects(java.lang.Object... items) |
Init the new CharacterBuffer
|
void |
withRepeat(java.lang.String string,
int rest) |
|
CharacterBuffer |
withStart(char item) |
Append a new Character to CharacterBuffer
|
CharacterBuffer |
withStart(java.lang.CharSequence item,
boolean newLine) |
Append a new Character to CharacterBuffer
|
CharacterBuffer |
withStartPosition(int pos) |
Set the Current Startposition
|
CharacterBuffer |
withValue(java.lang.String value) |
Set the currentVlaue to Buffer
|
CharacterBuffer |
write(byte[] values,
int length) |
array, checkValues, getBoolean, getByte, getDouble, getFloat, getInt, getLong, getShort, getString, getStringList, getUnsignedInt, isEmpty, nextClean, nextString, nextString, nextString, nextToken, nextValue, position, readLine, skip, skip, skipChar, skipTo, skipTo, splitStringsback, clear, getCurrentChar, getNextString, isEnd, isEndCharacter, length, nextString, nextValue, parseString, substring, toArrayString, toBytes, withLookAHead, withLookAHead, withPositionpublic char charAt(int index)
char value in this sequence at the specified index.
The first char value is at index 0, the next at index
1, and so on, as in array indexing.
The index argument must be greater than or equal to
0, and less than the length of this sequence.
If the char value specified by the index is a
surrogate, the surrogate
value is returned.
charAt in interface java.lang.CharSequencecharAt in class BufferedBufferindex - the index of the desired char value.char value at the specified index.public byte byteAt(int index)
byteAt in class BufferedBufferpublic CharacterBuffer subSequence(int start, int end)
An invocation of this method of the form
sb.subSequence(begin, end)
behaves in exactly the same way as the invocation
sb.substring(begin, end)
This method is provided so that this class can
implement the CharSequence interface.subSequence in interface java.lang.CharSequencesubSequence in class BufferedBufferstart - the start index, inclusive.end - the end index, exclusive.java.lang.IndexOutOfBoundsException - if start or end are negative,
if end is greater than length(), or if start is greater than endpublic CharacterBuffer withValue(java.lang.String value)
value - String of Valuepublic char[] toCharArray()
public boolean replace(int start,
int end,
java.lang.String replace)
public void replace(char search,
char replace)
public boolean replace(java.lang.String search,
java.lang.String replace)
public char getChar()
getChar in interface BufferItemgetChar in class Bufferpublic CharacterBuffer with(byte[] values)
values - the reference CharArraypublic CharacterBuffer withLine(java.lang.CharSequence value)
public CharacterBuffer withLength(int len)
withLength in class BufferedBufferpublic CharacterBuffer withBufferLength(int len)
public CharacterBuffer withStartPosition(int pos)
pos - The new Startpositionpublic CharacterBuffer with(char[] values, int start, int end, boolean copy)
values - the reference CharArraystart - the Startposition for the new CharacterBufferend - the Endposition for the new CharacterBuffercopy - Boolean if copy the Array to new onepublic CharacterBuffer with(char[] values, int start, int length)
with in class BufferedBuffervalues - the reference CharArraystart - the Startposition for the new CharacterBufferlength - the Endposition for the new CharacterBufferpublic CharacterBuffer with(byte[] values, int start, int length)
values - the reference CharArraystart - the Startposition for the new CharacterBufferlength - the Endposition for the new CharacterBufferpublic CharacterBuffer write(byte[] values, int length)
public CharacterBuffer with(java.lang.CharSequence values, int start, int end)
values - the reference CharSequencestart - the Startposition for the new CharacterBufferend - the Endposition for the new CharacterBufferpublic CharacterBuffer with(java.lang.CharSequence... items)
with in class BufferedBufferitems - the reference CharSequencepublic CharacterBuffer with(int value)
public CharacterBuffer with(long value)
public CharacterBuffer withCollection(java.lang.String splitter, java.lang.Object... values)
public CharacterBuffer withStart(char item)
item - a new StartItempublic CharacterBuffer withStart(java.lang.CharSequence item, boolean newLine)
item - a new StartItemnewLine - add newLine to Buffer at the endpublic CharacterBuffer set(java.lang.CharSequence value)
value - the reference CharSequencepublic CharacterBuffer set(char value)
value - the reference CharSequencepublic boolean startsWith(java.lang.CharSequence prefix)
public boolean startsWith(java.lang.CharSequence prefix,
int toffset,
boolean ignoreCase)
public final int remaining()
remaining in interface BufferItemremaining in class Bufferpublic char remove(int position)
public CharacterBuffer trimStart(int pos)
public CharacterBuffer trimEnd(int pos)
public CharacterBuffer rtrim(char... items)
public CharacterBuffer trim()
public boolean equalsText(char... other)
public double equalsLevenshtein(CharacterBuffer t)
t - the other Stringpublic boolean isEmptyCharacter()
public void withRepeat(java.lang.String string,
int rest)
public CharacterBuffer withObjects(java.lang.Object... items)
items - the reference CharSequencepublic CharacterBuffer with(char src)
src - the reference CharSequencepublic void trimSize()
public java.lang.String toString()
BaseItempublic boolean equals(java.lang.CharSequence other)
public boolean equalsIgnoreCase(java.lang.CharSequence other)
public int indexOf(int ch)
public int indexOf(java.lang.CharSequence value)
public int indexOf(int ch,
int fromIndex)
public int indexOf(java.lang.CharSequence str,
int fromIndex)
public int lastIndexOf(char ch)
public java.lang.String getStringPart(java.lang.Character start,
java.lang.Character end)
start - Startcharacterend - Endcharacterpublic boolean endsWith(java.lang.CharSequence string,
boolean ignoreCase)
public void setNextString(java.lang.CharSequence property,
int pos)
public static CharacterBuffer create(java.lang.CharSequence value)
public java.lang.String toCurrentString()
public CharacterBuffer insert(int offset, java.lang.String values)
public boolean add(java.lang.Object... values)
BaseItempublic void printError(java.lang.String msg)
printError in class Bufferpublic CharacterBuffer getNewList(boolean keyValue)
getNewList in interface BaseItemgetNewList in class BufferedBufferpublic int size()
BaseItem