public class QuotedStringTokenizer
extends java.util.StringTokenizer
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
delim |
protected char |
escape |
protected int |
len |
protected int |
pos |
protected java.lang.String |
quotes |
protected boolean |
returnDelims |
protected java.lang.String |
str |
Constructor and Description |
---|
QuotedStringTokenizer(java.lang.String str)
Constructs a string tokenizer for the specified string.
|
QuotedStringTokenizer(java.lang.String str,
java.lang.String delim)
Constructs a string tokenizer for the specified string.
|
QuotedStringTokenizer(java.lang.String str,
java.lang.String delim,
java.lang.String quotes,
char escape,
boolean returnDelims)
Constructs a string tokenizer for the specified string.
|
Modifier and Type | Method and Description |
---|---|
int |
countTokens()
Calculates the number of times that this tokenizer's nextToken method
can be called before it generates an exception.
|
boolean |
hasMoreElements()
Returns the same value as the hasMoreTokens method.
|
boolean |
hasMoreTokens()
Tests if there are more tokens available from this tokenizer's string.
|
java.lang.Object |
nextElement()
Returns the same value as the nextToken method, except that its declared
return value is Object rather than String.
|
java.lang.String |
nextToken()
Returns the next token from this string tokenizer.
|
java.lang.String |
nextToken(java.lang.String delim)
Returns the next token in this string tokenizer's string.
|
protected final java.lang.String str
protected java.lang.String delim
protected final java.lang.String quotes
protected final char escape
protected final boolean returnDelims
protected int pos
protected final int len
public QuotedStringTokenizer(java.lang.String str)
public QuotedStringTokenizer(java.lang.String str, java.lang.String delim)
public QuotedStringTokenizer(java.lang.String str, java.lang.String delim, java.lang.String quotes, char escape, boolean returnDelims)
public boolean hasMoreTokens()
hasMoreTokens
in class java.util.StringTokenizer
public java.lang.String nextToken()
nextToken
in class java.util.StringTokenizer
public java.lang.String nextToken(java.lang.String delim)
nextToken
in class java.util.StringTokenizer
public int countTokens()
countTokens
in class java.util.StringTokenizer
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration<java.lang.Object>
hasMoreElements
in class java.util.StringTokenizer
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration<java.lang.Object>
nextElement
in class java.util.StringTokenizer