|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectasjava.uniclientlibs.UniStringTokenizer
UniStringTokenizer
is a virtual extension of the java.util.StringTokenizer
class with one key difference. Using the base java model, delimiters are treated
as 'white space', and a sequential series of delimiters is treated as a single delimiter.
for many of our needs, using UniVerse mark characters as delimiters, we need to treat
each delimiter as separating a new token, and the nextToken
method will
reflect that difference
Constructor Summary | |
---|---|
UniStringTokenizer(java.lang.Object stringVal)
|
|
UniStringTokenizer(java.lang.Object stringVal,
java.lang.Object delimiterVal)
|
Method Summary | |
---|---|
int |
countTokens()
used to count the number of tokens in any given string |
boolean |
hasMoreTokens()
used to determine if any tokens remain in the string |
java.lang.String |
nextToken()
parses off the next token in the string. |
void |
resetTokenizer()
resets the string tokenizer to look at the very beginning of the string, to allow reparsing of the string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UniStringTokenizer(java.lang.Object stringVal)
public UniStringTokenizer(java.lang.Object stringVal, java.lang.Object delimiterVal)
Method Detail |
public int countTokens()
public boolean hasMoreTokens()
public java.lang.String nextToken()
null
if no more tokens exist
null
if no more tokens existpublic void resetTokenizer()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |