public class FlexBuffer.Tokenizer extends Object
Constructor and Description |
---|
Tokenizer() |
Modifier and Type | Method and Description |
---|---|
boolean |
endOfData()
Returns position of end of data.
|
void |
flip()
Copies the data from the current position to the beginning of
the buffer.
|
byte[] |
getLine()
Gets the next line from the buffer.
|
String |
getLineAsString()
Gets the next line from the buffer, returning a string.
|
String |
getTrimmedRemainder()
Gets the rest of the line from the buffer, trims, and returns
as a string.
|
String |
nextToken(byte c)
Returns next token.
|
String |
nextToken(byte[] bytes)
Returns next token.
|
String |
nextToken(String s)
Returns next token.
|
public byte[] getLine()
public String getLineAsString()
public String getTrimmedRemainder()
public String nextToken(byte[] bytes)
bytes
- public String nextToken(byte c)
c
- public boolean endOfData()
public void flip()