This class is immutable and thread safe.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final char | DQUOTE
Double quote |
| public static final char | ESCAPE
Backward slash / escape character |
| public static final int | |
| public static final Tokenizer | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | copyContent(final CharSequence
buffer with the sequence of chars to be parsed buf, final Tokenizer.defines the bounds and current position of the buffer cursor,set of delimiting characters. Can be delimiters, final StringBuilder null if the value
is delimited by a whitespace only.destination buffer dst)Transfers content into the destination buffer until a whitespace character or any of the given delimiters is encountered. |
| public void | copyQuotedContent(final CharSequence
buffer with the sequence of chars to be parsed buf, final Tokenizer.defines the bounds and current position of the buffer cursor,destination buffer dst)Transfers content enclosed with quote marks into the destination buffer. |
| public void | copyUnquotedContent(final CharSequence
buffer with the sequence of chars to be parsed buf, final Tokenizer.defines the bounds and current position of the buffer cursor,set of delimiting characters. Can be delimiters, final StringBuilder null if the value
is delimited by a whitespace or a quote only.destination buffer dst)Transfers content into the destination buffer until a whitespace character, a quote, or any of the given delimiters is encountered. |
| public static BitSet | |
| public static boolean | |
| public String | parseContent(final CharSequence
buffer with the sequence of chars to be parsed buf, final Tokenizer.defines the bounds and current position of the buffer cursor,set of delimiting characters. Can be delimiters)null if the token
is not delimited by any character.Extracts from the sequence of chars a token terminated with any of the given delimiters or a whitespace characters. |
| public String | parseToken(final CharSequence
buffer with the sequence of chars to be parsed buf, final Tokenizer.defines the bounds and current position of the buffer cursor,set of delimiting characters. Can be delimiters)null if the token
is not delimited by any character.Extracts from the sequence of chars a token terminated with any of the given delimiters discarding semantically insignificant whitespace characters. |
| public String | parseValue(final CharSequence
buffer with the sequence of chars to be parsed buf, final Tokenizer.defines the bounds and current position of the buffer cursor,set of delimiting characters. Can be delimiters)null if the value
is not delimited by any character.Extracts from the sequence of chars a value which can be enclosed in quote marks and terminated with any of the given delimiters discarding semantically insignificant whitespace characters. |
| public void | skipWhiteSpace(final CharSequence
buffer with the sequence of chars to be parsed buf, final Tokenizer.defines the bounds and current position of the buffer cursorSkips semantically insignificant whitespace characters and moves the cursor to the closest non-whitespace character. |
| CR | back to summary |
|---|---|
| public static final int CR | |
| DQUOTE | back to summary |
|---|---|
| public static final char DQUOTE Double quote | |
| ESCAPE | back to summary |
|---|---|
| public static final char ESCAPE Backward slash / escape character | |
| HT | back to summary |
|---|---|
| public static final int HT | |
| INSTANCE | back to summary |
|---|---|
| public static final Tokenizer INSTANCE | |
| LF | back to summary |
|---|---|
| public static final int LF | |
| SP | back to summary |
|---|---|
| public static final int SP | |
| Tokenizer | back to summary |
|---|---|
| public Tokenizer() | |
| copyContent | back to summary |
|---|---|
| public void copyContent(final CharSequence buf, final Tokenizer. Transfers content into the destination buffer until a whitespace character or any of the given delimiters is encountered.
| |
| copyQuotedContent | back to summary |
|---|---|
| public void copyQuotedContent(final CharSequence buf, final Tokenizer. Transfers content enclosed with quote marks into the destination buffer.
| |
| copyUnquotedContent | back to summary |
|---|---|
| public void copyUnquotedContent(final CharSequence buf, final Tokenizer. Transfers content into the destination buffer until a whitespace character, a quote, or any of the given delimiters is encountered.
| |
| INIT_BITSET | back to summary |
|---|---|
| public static BitSet INIT_BITSET(final int... b) | |
| isWhitespace | back to summary |
|---|---|
| public static boolean isWhitespace(final char ch) | |
| parseContent | back to summary |
|---|---|
| public String parseContent(final CharSequence buf, final Tokenizer. Extracts from the sequence of chars a token terminated with any of the given delimiters or a whitespace characters.
| |
| parseToken | back to summary |
|---|---|
| public String parseToken(final CharSequence buf, final Tokenizer. Extracts from the sequence of chars a token terminated with any of the given delimiters discarding semantically insignificant whitespace characters.
| |
| parseValue | back to summary |
|---|---|
| public String parseValue(final CharSequence buf, final Tokenizer. Extracts from the sequence of chars a value which can be enclosed in quote marks and terminated with any of the given delimiters discarding semantically insignificant whitespace characters.
| |
| skipWhiteSpace | back to summary |
|---|---|
| public void skipWhiteSpace(final CharSequence buf, final Tokenizer. Skips semantically insignificant whitespace characters and moves the cursor to the closest non-whitespace character.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public int | |
| public int | |
| public int | |
| public String | |
| public void |
| lowerBound | back to summary |
|---|---|
| private final int lowerBound | |
| pos | back to summary |
|---|---|
| private int pos | |
| upperBound | back to summary |
|---|---|
| private final int upperBound | |
| Cursor | back to summary |
|---|---|
| public Cursor(final int lowerBound, final int upperBound) | |
| atEnd | back to summary |
|---|---|
| public boolean atEnd() | |
| getLowerBound | back to summary |
|---|---|
| public int getLowerBound() | |
| getPos | back to summary |
|---|---|
| public int getPos() | |
| getUpperBound | back to summary |
|---|---|
| public int getUpperBound() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| updatePos | back to summary |
|---|---|
| public void updatePos(final int pos) | |