public class ParamTokenizer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
currentPosition |
protected char |
delimiter |
static LocalStringManagerImpl |
localStrings |
protected int |
maxPosition |
protected String |
str |
protected StringBuilder |
token |
| Constructor and Description |
|---|
ParamTokenizer(String str,
char delimiter)
Construct a tokenizer for the specified string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreTokens()
Test if there are more tokens available from this tokenizer's string.
|
String |
nextToken()
Return the next token from this tokenizer.
|
String |
nextTokenKeepEscapes()
Return the next token from this tokenizer.
|
protected String |
scanToken(boolean keep)
Return the next token starting at the current position.
|
protected int currentPosition
protected int maxPosition
protected String str
protected char delimiter
protected StringBuilder token
public static final LocalStringManagerImpl localStrings
public ParamTokenizer(String str, char delimiter)
str - a string to be parsed.public boolean hasMoreTokens()
true if there are more tokens available from this
tokenizer's string; false otherwise.public String nextToken() throws NoSuchElementException
NoSuchElementException - if there are no more tokens in this
tokenizer's string.public String nextTokenKeepEscapes() throws NoSuchElementException
NoSuchElementException - if there are no more tokens in this
tokenizer's string.protected String scanToken(boolean keep) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.