| java.lang.Object java.util.StringTokenizer org.mortbay.util.QuotedStringTokenizer
QuotedStringTokenizer | public class QuotedStringTokenizer extends StringTokenizer (Code) | | StringTokenizer with Quoting support.
This class is a copy of the java.util.StringTokenizer API and
the behaviour is the same, except that single and doulbe quoted
string values are recognized.
Delimiters within quotes are not considered delimiters.
Quotes can be escaped with '\'.
See Also: java.util.StringTokenizer author: Greg Wilkins (gregw) |
QuotedStringTokenizer | public QuotedStringTokenizer(String str, String delim, boolean returnDelimiters, boolean returnQuotes)(Code) | | |
QuotedStringTokenizer | public QuotedStringTokenizer(String str, String delim, boolean returnDelimiters)(Code) | | |
QuotedStringTokenizer | public QuotedStringTokenizer(String str)(Code) | | |
countTokens | public int countTokens()(Code) | | Not implemented.
|
getDouble | public boolean getDouble()(Code) | | handle double quotes if true |
getSingle | public boolean getSingle()(Code) | | handle single quotes if true |
hasMoreElements | public boolean hasMoreElements()(Code) | | |
hasMoreTokens | public boolean hasMoreTokens()(Code) | | |
quote | public static String quote(String s, String delim)(Code) | | Quote a string.
The string is quoted only if quoting is required due to
embeded delimiters, quote characters or the
empty string.
Parameters: s - The string to quote. quoted string |
quote | public static String quote(String s)(Code) | | Quote a string.
The string is quoted only if quoting is required due to
embeded delimiters, quote characters or the
empty string.
Parameters: s - The string to quote. quoted string |
quote | public static void quote(StringBuffer buf, String s)(Code) | | Quote a string into a StringBuffer.
The characters ", \, \n, \r, \t, \f and \b are escaped
Parameters: buf - The StringBuffer Parameters: s - The String to quote. |
setDouble | public void setDouble(boolean d)(Code) | | Parameters: d - handle double quotes if true |
setSingle | public void setSingle(boolean single)(Code) | | Parameters: single - handle single quotes if true |
unquote | public static String unquote(String s)(Code) | | Unquote a string.
Parameters: s - The string to unquote. quoted string |
|
|