|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.common.util.admin.ParamTokenizer
public class ParamTokenizer
Separate parameters to admin commands into tokens. Mostly used for parameters that take a list of values separated by colons.
| Field Summary | |
|---|---|
protected int |
currentPosition
|
protected char |
delimiter
|
static LocalStringManagerImpl |
localStrings
|
protected int |
maxPosition
|
protected java.lang.String |
str
|
protected java.lang.StringBuilder |
token
|
| Constructor Summary | |
|---|---|
ParamTokenizer(java.lang.String str,
char delimiter)
Construct a tokenizer for the specified string. |
|
| Method Summary | |
|---|---|
boolean |
hasMoreTokens()
Test if there are more tokens available from this tokenizer's string. |
java.lang.String |
nextToken()
Return the next token from this tokenizer. |
java.lang.String |
nextTokenKeepEscapes()
Return the next token from this tokenizer. |
protected java.lang.String |
scanToken(boolean keep)
Return the next token starting at the current position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int currentPosition
protected int maxPosition
protected java.lang.String str
protected char delimiter
protected java.lang.StringBuilder token
public static final LocalStringManagerImpl localStrings
| Constructor Detail |
|---|
public ParamTokenizer(java.lang.String str,
char delimiter)
str - a string to be parsed.| Method Detail |
|---|
public boolean hasMoreTokens()
true if there are more tokens available from this
tokenizer's string; false otherwise.
public java.lang.String nextToken()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if there are no more tokens in this
tokenizer's string.
public java.lang.String nextTokenKeepEscapes()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if there are no more tokens in this
tokenizer's string.
protected java.lang.String scanToken(boolean keep)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||