Tokenizer
@Deprecated @Contract(threading=IMMUTABLE) public class TokenParser extends Tokenizer
This class is immutable and thread safe.
Tokenizer.Cursor, Tokenizer.Delimiter
Modifier and Type | Field and Description |
---|---|
static char |
DQUOTE
Deprecated.
Double quote
|
static char |
ESCAPE
Deprecated.
Backward slash / escape character
|
static TokenParser |
INSTANCE
Deprecated.
|
Constructor and Description |
---|
TokenParser()
Deprecated.
|
copyContent, copyUnquotedContent, delimiters, delimiters, delimiters, delimiters, delimiters, INIT_BITSET, isWhitespace, parseContent, parseContent, parseToken, parseToken, parseValue, parseValue, skipWhiteSpace
public 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)
copyContent
in class Tokenizer
public void copyUnquotedContent(CharSequence buf, ParserCursor cursor, BitSet delimiters, StringBuilder dst)
public void copyUnquotedContent(CharSequence buf, Tokenizer.Cursor cursor, BitSet delimiters, StringBuilder dst)
copyUnquotedContent
in class Tokenizer
public void copyQuotedContent(CharSequence buf, ParserCursor cursor, StringBuilder dst)
public void copyQuotedContent(CharSequence buf, Tokenizer.Cursor cursor, StringBuilder dst)
Tokenizer
copyQuotedContent
in class Tokenizer
buf
- buffer with the sequence of chars to be parsedcursor
- defines the bounds and current position of the bufferdst
- destination bufferCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.