public class StringParser
extends java.lang.Object
| Constructor and Description |
|---|
StringParser()
Creates a StringParser instace
|
| Modifier and Type | Method and Description |
|---|---|
int |
get_num_tokens()
Get the number of tokens detected in the parsed string
|
java.lang.String |
get_token(int index)
Get the index'th string token
|
void |
tokenize(java.lang.String str)
Parse the supplied string and split it into tokens separated by
spaces, surrounded in quotes and/or surrounded in braces "{...}"
|
void |
tokenize(java.lang.String str,
char sep)
Parse the supplied string and split it into tokens separated by
sep, surrounded in quotes and/or surrounded in braces "{...}"
|
public int get_num_tokens()
public java.lang.String get_token(int index)
throws ErrorInfo
index - (IN) index of token to retrieveErrorInfo - on errorpublic void tokenize(java.lang.String str,
char sep)
throws ErrorInfo
str - (IN) string to be broken upsep - (IN) separatorErrorInfo - on error