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()
Get the Current Character
|
java.lang.String |
getNextString(int n)
Get the next n characters.
|
boolean |
isEnd()
Is the Buffer is on End
|
int |
length() |
java.lang.String |
nextString(int count) |
protected CharacterBuffer |
nextValue(char c,
boolean allowDuppleMark) |
protected CharacterBuffer |
parseString(CharacterBuffer sc,
boolean allowQuote,
boolean nextStep,
char... quotes) |
abstract CharacterBuffer |
subSequence(int start,
int endPosition)
Substring of Buffer
|
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, getChar, getDouble, getFloat, getInt, getLong, getShort, getString, getStringList, isEmpty, nextClean, nextString, nextString, nextToken, nextValue, position, readLine, remaining, skip, skip, skipChar, skipTo, skipTo, splitStringspublic boolean back()
public BufferedBuffer withPosition(int value)
public int length()
public boolean isEnd()
BufferItemisEnd in interface BufferItemisEnd in class Bufferpublic 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 endPosition)
start - startindex for parsingendPosition - the endPosition 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 nextString(int count)
public java.lang.String substring(int... positions)
substring in class Bufferpositions - 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