public abstract class BufferedBuffer extends Buffer
| Modifier and Type | Field and Description |
|---|---|
protected int |
length
The count is the number of characters used.
|
position, STOPCHARSJSON, STOPCHARSXML, STOPCHARSXMLENDSPACE| Constructor and Description |
|---|
BufferedBuffer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
back() |
abstract byte |
byteAt(int index) |
abstract char |
charAt(int index) |
char |
getCurrentChar() |
java.lang.String |
getNextString(int n)
Get the next n characters.
|
int |
length() |
protected CharacterBuffer |
nextValue(char c,
boolean allowDuppleMark) |
protected CharacterBuffer |
parseString(CharacterBuffer sc,
boolean allowQuote,
boolean nextStep,
char... quotes) |
abstract CharacterBuffer |
subSequence(int start,
int length) |
java.lang.String |
substring(int... positions) |
BufferedBuffer |
withLength(int value) |
BufferedBuffer |
withLookAHead(char lookahead)
Add lookAHead to Buffer
|
BufferedBuffer |
withLookAHead(java.lang.CharSequence lookahead)
Add lookAHead to Buffer
|
BufferedBuffer |
withPosition(int value) |
array, checkValues, getByte, getDouble, getFloat, getInt, getLong, getShort, getString, getStringList, isEmpty, isEnd, nextClean, nextString, nextString, nextToken, nextValue, position, remaining, skip, skip, skipChar, skipTo, skipTo, splitStringsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCharpublic boolean back()
public BufferedBuffer withPosition(int value)
public int length()
public BufferedBuffer withLength(int value)
public abstract byte byteAt(int index)
public abstract char charAt(int index)
public char getCurrentChar()
public abstract CharacterBuffer subSequence(int start, int length)
start - startindex for parsinglength - the length of Substringpublic BufferedBuffer withLookAHead(java.lang.CharSequence lookahead)
BufferItemlookahead - The String for look A Head String. For Simple Buffer change position back to the length of String or Save the String.public BufferedBuffer withLookAHead(char lookahead)
BufferItemlookahead - The next Characterprotected CharacterBuffer parseString(CharacterBuffer sc, boolean allowQuote, boolean nextStep, char... quotes)
parseString in class Bufferpublic java.lang.String getNextString(int n)
n - The number of characters to take.protected CharacterBuffer nextValue(char c, boolean allowDuppleMark)
public java.lang.String substring(int... positions)
positions - first is start Position, second is Endposition
Absolut fix Start and End start>0 StartPosition
end>Start EndPosition
Absolut from fix Position Start>0 Position end NULL To End
end -1 To this.index
Relativ from indexPosition Start Position from this.index +
(-Start) End = 0 current Position