public interface BufferItem
| Modifier and Type | Field and Description |
|---|---|
static char |
SPACE |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
array(int len,
boolean current) |
boolean |
checkValues(char... items)
Check values of the Current Char
|
byte |
getByte() |
char |
getChar() |
char |
getCurrentChar() |
CharacterBuffer |
getString(int len)
Get the next String
|
SimpleList<java.lang.String> |
getStringList()
Method for parsing String Elements
|
boolean |
isEmpty() |
boolean |
isEnd()
Is the Buffer is on End
|
int |
length() |
char |
nextClean(boolean currentValid)
Get the next char in the string, skipping whitespace.
|
CharacterBuffer |
nextString()
Return the characters up to the next close quote character.
|
CharacterBuffer |
nextString(CharacterBuffer sc,
boolean allowQuote,
boolean nextStep,
char... quotes)
Return the characters up to the next close quote character.
|
CharacterBuffer |
nextToken(java.lang.String stopWords)
Get the next Token
|
java.lang.Object |
nextValue(BaseItem creator,
boolean allowQuote,
boolean allowDuppleMark,
char c)
Get the NextVlaue
|
int |
position()
Gets the index.
|
int |
remaining() |
boolean |
skip()
Skip
|
boolean |
skip(int pos)
Skip number of chars
|
char |
skipChar(char... quotes)
Skip The quotes if the CurrentChar is it
|
boolean |
skipTo(char search,
boolean notEscape)
Skip.
|
boolean |
skipTo(java.lang.String search,
boolean order,
boolean notEscape)
Skip.
|
SimpleList<java.lang.String> |
splitStrings(java.lang.String value,
boolean split)
Split Strings
|
BufferItem |
withLookAHead(char lookahead)
Add lookAHead to Buffer
|
BufferItem |
withLookAHead(java.lang.CharSequence lookahead)
Add lookAHead to Buffer
|
static final char SPACE
int length()
char getChar()
byte getByte()
char getCurrentChar()
byte[] array(int len,
boolean current)
len - len of next values
-1 remaining length
-2 all size (Only for BufferedBuffer)current - Add Current Byte to Arrayint position()
int remaining()
boolean isEmpty()
boolean isEnd()
BufferItem withLookAHead(java.lang.CharSequence lookahead)
lookahead - The String for look A Head String. For Simple Buffer change position back to the length of String or Save the String.BufferItem withLookAHead(char lookahead)
lookahead - The next CharacterCharacterBuffer getString(int len)
len - is the Length of the new Stringchar nextClean(boolean currentValid)
currentValid - is the current char also a valid characterCharacterBuffer nextString()
CharacterBuffer nextString(CharacterBuffer sc, boolean allowQuote, boolean nextStep, char... quotes)
sc - StringContainer for manage CharsallowQuote - is allow Quote in StreamnextStep - must i step next after find Textquotes - The quoting character, either "
(double quote) or '
(single quote).java.lang.Object nextValue(BaseItem creator, boolean allowQuote, boolean allowDuppleMark, char c)
creator - Creator for creating Child ItemallowQuote - Is it allow Quote in NextValuec - CurrentCharallowDuppleMark - Is allow DuppleMarksCharacterBuffer nextToken(java.lang.String stopWords)
stopWords - may be at Simple Spaceboolean skipTo(java.lang.String search,
boolean order,
boolean notEscape)
search - the The String of searchelementsorder - the if the order of search element importentnotEscape - Boolean if escaping the textboolean skipTo(char search,
boolean notEscape)
search - the The String of searchelementsnotEscape - Boolean if escaping the textboolean skip(int pos)
pos - the posboolean skip()
boolean checkValues(char... items)
items - the itemsSimpleList<java.lang.String> getStringList()
SimpleList<java.lang.String> splitStrings(java.lang.String value, boolean split)
value - The String valuesplit - boolean for Splitingchar skipChar(char... quotes)
quotes - Quotes to Skip