|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSerialio.ByteTokenizer
Parse tokens from byte stream. Works with null tokens e.g. ",,"
| Constructor Summary | |
ByteTokenizer(byte[] line,
byte sep)
|
|
| Method Summary | |
byte[] |
nextToken()
Parse next token from byte array. |
int |
numberOfTokens()
Count number of tokens in byte array. |
static int |
numberOfTokens(byte[] line,
byte sep)
Count number of tokens in byte array. |
void |
setOffset(int offSet)
Set the starting point of parsing within the buffer. |
void |
setParseEnd(int end)
Set the ending point of parsing within the buffer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteTokenizer(byte[] line,
byte sep)
| Method Detail |
public void setOffset(int offSet)
offSet - Offset within the buffer.public void setParseEnd(int end)
end - End point of the parse buffer.
public static int numberOfTokens(byte[] line,
byte sep)
line - Data to parsesep - Token separator
public int numberOfTokens()
public byte[] nextToken()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||