|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rimlib.blackberry.api.paymentsdk.SimpleStringTokenizer
public final class SimpleStringTokenizer
Simple string tokenizer utility class.
Create an instance by providing an input string and a delimiter character.
Use hasMoreTokens() to check if there are any more tokens.
Use nextToken() to get the next token.
| Constructor Summary | |
|---|---|
SimpleStringTokenizer(java.lang.String string,
char delimiter)
Creates a new SimpleStringTokenizer. |
|
| Method Summary | |
|---|---|
boolean |
hasMoreTokens()
Returns true if there are more tokens, |
java.lang.String |
nextToken()
Returns the next token if there are any. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleStringTokenizer(java.lang.String string,
char delimiter)
string is null.
string - input string to tokenize. Should not be null.delimiter - delimiting character
java.lang.IllegalArgumentException| Method Detail |
|---|
public boolean hasMoreTokens()
true if there are more tokens,
true if there are more tokens, public java.lang.String nextToken()
hasMoreTokens() first.
If there are no more tokens, exception is thrown.
java.lang.IllegalStateException - if there are no more tokens left
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||