| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final QuotedStringTokenizer | CSV
A QuotedStringTokenizer for comma separated values with optional white space. |
| Modifier and Type | Method and Description |
|---|---|
| public static QuotedStringTokenizer. | |
| public static boolean | |
| public boolean | |
| public default String | |
| public void | quote(Appendable
The Appendable to append the quoted and escaped string into. buffer, String The String to quote. input)Quote a string into an Appendable, escaping any characters that need to be escaped. |
| public String | |
| public void | quoteIfNeeded(StringBuilder
the buffer to append to buf, String the string to possibly quote str)Append into buf the provided string, adding quotes if needed. |
| public Iterator | |
| public String |
| CSV | back to summary |
|---|---|
| public static final QuotedStringTokenizer CSV A QuotedStringTokenizer for comma separated values with optional white space. | |
| builder | back to summary |
|---|---|
public static QuotedStringTokenizer.
| |
| isQuoted | back to summary |
|---|---|
public static boolean isQuoted(String s)
| |
| needsQuoting | back to summary |
|---|---|
public boolean needsQuoting(char c)
| |
| quote | back to summary |
|---|---|
| public default String quote(String s) Quote a string. The string is quoted only if quoting is required due to embedded delimiters, quote characters or the empty string. | |
| quote | back to summary |
|---|---|
| public void quote(Appendable buffer, String input) Quote a string into an Appendable, escaping any characters that need to be escaped.
| |
| quoteIfNeeded | back to summary |
|---|---|
| public String quoteIfNeeded(String s) Quote a string. The string is quoted only if quoting is required due to embedded delimiters, quote characters or the empty string. | |
| quoteIfNeeded | back to summary |
|---|---|
| public void quoteIfNeeded(StringBuilder buf, String str) Append into buf the provided string, adding quotes if needed.
Quoting is determined if any of the characters in the
| |
| tokenize | back to summary |
|---|---|
| public Iterator Tokenize the passed string into an | |
| unquote | back to summary |
|---|---|
| public String unquote(String s) Unquote a string and expand any escaped characters | |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public QuotedStringTokenizer. | Returns: thisBuilderIf called, the built |
| public QuotedStringTokenizer. | Returns: thisBuilderIf called, the built |
| public QuotedStringTokenizer. | Returns: thisBuilderIf called, the built |
| public QuotedStringTokenizer | |
| public QuotedStringTokenizer. | Returns: thisBuilderA string containing the set of characters that are considered delimiters. delim)
|
| public QuotedStringTokenizer. | Returns: thisBuilderIf called, the built |
| public QuotedStringTokenizer. | Returns: thisBuilderIf called, the built |
| public QuotedStringTokenizer. | Returns: thisBuilderIf called, the built |
| public QuotedStringTokenizer. | Returns: thisBuilderIf called, the built |
| _delim | back to summary |
|---|---|
| private String _delim | |
| _embeddedQuotes | back to summary |
|---|---|
| private boolean _embeddedQuotes | |
| _escapeOnlyQuote | back to summary |
|---|---|
| private boolean _escapeOnlyQuote | |
| _legacy | back to summary |
|---|---|
| private boolean _legacy | |
| _optionalWhiteSpace | back to summary |
|---|---|
| private boolean _optionalWhiteSpace | |
| _returnDelimiters | back to summary |
|---|---|
| private boolean _returnDelimiters | |
| _returnQuotes | back to summary |
|---|---|
| private boolean _returnQuotes | |
| _singleQuotes | back to summary |
|---|---|
| private boolean _singleQuotes | |
| Builder | back to summary |
|---|---|
| private Builder() | |
| allowEmbeddedQuotes | back to summary |
|---|---|
| public QuotedStringTokenizer. If called, the built
| |
| allowEscapeOnlyForQuotes | back to summary |
|---|---|
| public QuotedStringTokenizer. If called, the built
| |
| allowSingleQuote | back to summary |
|---|---|
| public QuotedStringTokenizer. If called, the built
| |
| build | back to summary |
|---|---|
public QuotedStringTokenizer build()
| |
| delimiters | back to summary |
|---|---|
public QuotedStringTokenizer.
| |
| ignoreOptionalWhiteSpace | back to summary |
|---|---|
| public QuotedStringTokenizer. If called, the built
| |
| legacy | back to summary |
|---|---|
| public QuotedStringTokenizer. If called, the built
| |
| returnDelimiters | back to summary |
|---|---|
| public QuotedStringTokenizer. If called, the built
| |
| returnQuotes | back to summary |
|---|---|
| public QuotedStringTokenizer. If called, the built
| |