rero.util
public class TokenizedString extends Object
| Field Summary | |
|---|---|
| protected String[] | stringToken |
| protected String | text |
| protected String | tokenDelimeter |
| protected String[] | tokenDownCache |
| protected String[] | tokenUpCache |
| protected int | totalTokens |
| Constructor Summary | |
|---|---|
| TokenizedString(String str) | |
| TokenizedString(String str, String delim) | |
| Method Summary | |
|---|---|
| int | findToken(String token) |
| String | getString() |
| protected static String | gettokdn(String text, int occurence, String delim) |
| protected static String | gettokup(String text, int occurence, String delim) |
| String | getToken(int x) returns token x |
| String | getTokenFrom(int x) returns tokens from and including x (starting at a 0 count) |
| String | getTokenRange(int a, int b) returns tokens from and including a up to and including b |
| String | getTokenTo(int x) returns tokens up to and including x (starting at a 0 count) |
| int | getTotalTokens() |
| boolean | isToken(String token) |
| boolean | isTokenized(String text, String delim) |
| int | tokenize(String delim) |
| String | toString() |