BaseItem, BufferItemByteBuffer, CharacterBufferpublic abstract class BufferedBuffer extends Buffer implements BaseItem
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
length |
The count is the number of characters used.
|
ENDLINE, position, STOPCHARSJSON, STOPCHARSXML, STOPCHARSXMLENDQUOTES, SPACE| Constructor | Description |
|---|---|
BufferedBuffer() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
back() |
|
abstract byte |
byteAt(int index) |
|
abstract char |
charAt(int index) |
|
void |
clear() |
|
char |
getCurrentChar() |
Get the Current Character
|
abstract BufferedBuffer |
getNewList(boolean list) |
|
java.lang.String |
getNextString(int n) |
Get the next n characters.
|
boolean |
isEnd() |
Is the Buffer is on End
|
boolean |
isEndCharacter() |
|
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) |
|
java.lang.String |
toArrayString(boolean... addString) |
|
byte[] |
toBytes(boolean... all) |
|
abstract BufferedBuffer |
with(char[] buffer,
int i,
int readed) |
|
abstract BufferedBuffer |
with(java.lang.CharSequence... items) |
|
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) |
add, size, toString, toStringarray, checkValues, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort, getString, getStringList, getUnsignedInt, isEmpty, nextClean, nextString, nextString, nextString, nextToken, nextValue, position, printError, readLine, remaining, skip, skip, skipChar, skipTo, skipTo, splitStringspublic boolean back()
public BufferedBuffer withPosition(int value)
public int length()
length in interface BufferItempublic boolean isEnd()
BufferItemisEnd in interface BufferItemisEnd in class Bufferpublic boolean isEndCharacter()
public BufferedBuffer withLength(int value)
public abstract byte byteAt(int index)
public abstract char charAt(int index)
public char getCurrentChar()
getCurrentChar in interface BufferItempublic abstract CharacterBuffer subSequence(int start, int endPosition)
start - startindex for parsingendPosition - the endPosition of Substringpublic BufferedBuffer withLookAHead(java.lang.CharSequence lookahead)
BufferItemwithLookAHead in interface 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)
BufferItemwithLookAHead in interface 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 Positionpublic byte[] toBytes(boolean... all)
public java.lang.String toArrayString(boolean... addString)
public final void clear()
public abstract BufferedBuffer with(char[] buffer, int i, int readed)
public abstract BufferedBuffer with(java.lang.CharSequence... items)
public abstract BufferedBuffer getNewList(boolean list)
getNewList in interface BaseItem