java.util.StringTokenizer
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private String | |
| private boolean | |
| private boolean | |
| private int | |
| private int | |
| private boolean | |
| private boolean | |
| private boolean | |
| private String | |
| private StringBuffer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public boolean | |
| public boolean | |
| public boolean | hasMoreElements()
Overrides java. Implements java. hasMoreTokens
method.
|
| public boolean | hasMoreTokens()
Overrides java. |
| public Object | nextElement()
Overrides java. Implements java. nextToken method,
except that its declared return value is Object rather than
String.
|
| public String | nextToken()
Overrides java. |
| public String | nextToken(String
the new delimiters. delim)Overrides java. |
| public static String | |
| public static String | |
| public static void | quote(StringBuffer
The StringBuffer buf, String The String to quote. s)Quote a string into a StringBuffer. |
| public static void | quoteIfNeeded(StringBuffer
The StringBuffer buf, String The String to quote. s)Quote a string into a StringBuffer. |
| public void | |
| public void | |
| public static String |
| __delim | back to summary |
|---|---|
| private static final String __delim | |
| _delim | back to summary |
|---|---|
| private String _delim | |
| _double | back to summary |
|---|---|
| private boolean _double | |
| _hasToken | back to summary |
|---|---|
| private boolean _hasToken | |
| _i | back to summary |
|---|---|
| private int _i | |
| _lastStart | back to summary |
|---|---|
| private int _lastStart | |
| _returnDelimiters | back to summary |
|---|---|
| private boolean _returnDelimiters | |
| _returnQuotes | back to summary |
|---|---|
| private boolean _returnQuotes | |
| _single | back to summary |
|---|---|
| private boolean _single | |
| _string | back to summary |
|---|---|
| private String _string | |
| _token | back to summary |
|---|---|
| private StringBuffer _token | |
| QuotedStringTokenizer | back to summary |
|---|---|
| public QuotedStringTokenizer(String str, String delim, boolean returnDelimiters, boolean returnQuotes) | |
| QuotedStringTokenizer | back to summary |
|---|---|
| public QuotedStringTokenizer(String str, String delim, boolean returnDelimiters) | |
| QuotedStringTokenizer | back to summary |
|---|---|
| public QuotedStringTokenizer(String str, String delim) | |
| QuotedStringTokenizer | back to summary |
|---|---|
| public QuotedStringTokenizer(String str) | |
| countTokens | back to summary |
|---|---|
| public int countTokens() Overrides java. Not implemented.
| |
| getDouble | back to summary |
|---|---|
public boolean getDouble()
| |
| getSingle | back to summary |
|---|---|
public boolean getSingle()
| |
| hasMoreElements | back to summary |
|---|---|
| public boolean hasMoreElements() Overrides java. Implements java. Doc from java. Returns the same value as the
| |
| hasMoreTokens | back to summary |
|---|---|
| public boolean hasMoreTokens() Overrides java. Doc from java. Tests if there are more tokens available from this tokenizer's string.
If this method returns
| |
| nextElement | back to summary |
|---|---|
| public Object nextElement() throws NoSuchElementException Overrides java. Implements java. Doc from java. Returns the same value as the
| |
| nextToken | back to summary |
|---|---|
| public String nextToken() throws NoSuchElementException Overrides java. Doc from java. Returns the next token from this string tokenizer.
| |
| nextToken | back to summary |
|---|---|
| public String nextToken(String delim) throws NoSuchElementException Overrides java. Doc from java. Returns the next token in this string tokenizer's string. First,
the set of characters considered to be delimiters by this
| |
| quote | back to summary |
|---|---|
| public static String quote(String s, String delim) Quote a string. The string is quoted only if quoting is required due to embeded delimiters, quote characters or the empty string. | |
| quote | back to summary |
|---|---|
| public static String quote(String s) Quote a string. The string is quoted only if quoting is required due to embeded delimiters, quote characters or the empty string. | |
| quote | back to summary |
|---|---|
| public static void quote(StringBuffer buf, String s) Quote a string into a StringBuffer. The characters ", \, \n, \r, \t, \f and \b are escaped
| |
| quoteIfNeeded | back to summary |
|---|---|
| public static void quoteIfNeeded(StringBuffer buf, String s) Quote a string into a StringBuffer. The characters ", \, \n, \r, \t, \f, \b are escaped. Quotes are forced if any escaped characters are present or there is a ", ', space, + or % character.
| |
| setDouble | back to summary |
|---|---|
public void setDouble(boolean d)
| |
| setSingle | back to summary |
|---|---|
public void setSingle(boolean single)
| |
| unquote | back to summary |
|---|---|
| public static String unquote(String s) Unquote a string. | |