Tokenizer@Deprecated @Contract(threading=IMMUTABLE) public class TokenParser extends Tokenizer
This class is immutable and thread safe.
Tokenizer.Cursor| 限定符和类型 | 字段和说明 |
|---|---|
static char |
DQUOTE
已过时。
Double quote
|
static char |
ESCAPE
已过时。
Backward slash / escape character
|
static TokenParser |
INSTANCE
已过时。
|
| 构造器和说明 |
|---|
TokenParser()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
copyContent(CharSequence buf,
ParserCursor cursor,
BitSet delimiters,
StringBuilder dst)
已过时。
|
void |
copyContent(CharSequence buf,
Tokenizer.Cursor cursor,
BitSet delimiters,
StringBuilder dst)
已过时。
Transfers content into the destination buffer until a whitespace character or any of
the given delimiters is encountered.
|
void |
copyQuotedContent(CharSequence buf,
ParserCursor cursor,
StringBuilder dst)
已过时。
|
void |
copyQuotedContent(CharSequence buf,
Tokenizer.Cursor cursor,
StringBuilder dst)
已过时。
Transfers content enclosed with quote marks into the destination buffer.
|
void |
copyUnquotedContent(CharSequence buf,
ParserCursor cursor,
BitSet delimiters,
StringBuilder dst)
已过时。
|
void |
copyUnquotedContent(CharSequence buf,
Tokenizer.Cursor cursor,
BitSet delimiters,
StringBuilder dst)
已过时。
Transfers content into the destination buffer until a whitespace character, a quote,
or any of the given delimiters is encountered.
|
String |
parseToken(CharSequence buf,
ParserCursor cursor,
BitSet delimiters)
已过时。
|
String |
parseValue(CharSequence buf,
ParserCursor cursor,
BitSet delimiters)
已过时。
|
void |
skipWhiteSpace(CharSequence buf,
ParserCursor cursor)
已过时。
|
INIT_BITSET, isWhitespace, parseContent, parseToken, parseValue, skipWhiteSpacepublic static final TokenParser INSTANCE
public static final char DQUOTE
public static final char ESCAPE
public String parseToken(CharSequence buf, ParserCursor cursor, BitSet delimiters)
public String parseValue(CharSequence buf, ParserCursor cursor, BitSet delimiters)
public void skipWhiteSpace(CharSequence buf, ParserCursor cursor)
public void copyContent(CharSequence buf, ParserCursor cursor, BitSet delimiters, StringBuilder dst)
public void copyContent(CharSequence buf, Tokenizer.Cursor cursor, BitSet delimiters, StringBuilder dst)
TokenizercopyContent 在类中 Tokenizerbuf - buffer with the sequence of chars to be parsedcursor - defines the bounds and current position of the bufferdelimiters - set of delimiting characters. Can be null if the value
is delimited by a whitespace only.dst - destination bufferpublic void copyUnquotedContent(CharSequence buf, ParserCursor cursor, BitSet delimiters, StringBuilder dst)
public void copyUnquotedContent(CharSequence buf, Tokenizer.Cursor cursor, BitSet delimiters, StringBuilder dst)
TokenizercopyUnquotedContent 在类中 Tokenizerbuf - buffer with the sequence of chars to be parsedcursor - defines the bounds and current position of the bufferdelimiters - set of delimiting characters. Can be null if the value
is delimited by a whitespace or a quote only.dst - destination bufferpublic void copyQuotedContent(CharSequence buf, ParserCursor cursor, StringBuilder dst)
public void copyQuotedContent(CharSequence buf, Tokenizer.Cursor cursor, StringBuilder dst)
TokenizercopyQuotedContent 在类中 Tokenizerbuf - buffer with the sequence of chars to be parsedcursor - defines the bounds and current position of the bufferdst - destination bufferCopyright © 2023. All rights reserved.