Package org.apache.hc.core5.http.message
Class TokenParser
java.lang.Object
org.apache.hc.core5.util.Tokenizer
org.apache.hc.core5.http.message.TokenParser
Deprecated.
Low level parser for header field elements. The parsing routines of this class are designed
to produce near zero intermediate garbage and make no intermediate copies of input data.
This class is immutable and thread safe.
- Since:
- 4.4
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hc.core5.util.Tokenizer
Tokenizer.Cursor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charDeprecated.Double quotestatic final charDeprecated.Backward slash / escape characterstatic final TokenParserDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyContent(CharSequence buf, ParserCursor cursor, BitSet delimiters, StringBuilder dst) Deprecated.voidcopyContent(CharSequence buf, Tokenizer.Cursor cursor, BitSet delimiters, StringBuilder dst) Deprecated.Transfers content into the destination buffer until a whitespace character or any of the given delimiters is encountered.voidcopyQuotedContent(CharSequence buf, ParserCursor cursor, StringBuilder dst) Deprecated.voidcopyQuotedContent(CharSequence buf, Tokenizer.Cursor cursor, StringBuilder dst) Deprecated.Transfers content enclosed with quote marks into the destination buffer.voidcopyUnquotedContent(CharSequence buf, ParserCursor cursor, BitSet delimiters, StringBuilder dst) Deprecated.voidcopyUnquotedContent(CharSequence buf, Tokenizer.Cursor cursor, BitSet delimiters, StringBuilder dst) Deprecated.Transfers content into the destination buffer until a whitespace character, a quote, or any of the given delimiters is encountered.parseToken(CharSequence buf, ParserCursor cursor, BitSet delimiters) Deprecated.parseValue(CharSequence buf, ParserCursor cursor, BitSet delimiters) Deprecated.voidskipWhiteSpace(CharSequence buf, ParserCursor cursor) Deprecated.Methods inherited from class org.apache.hc.core5.util.Tokenizer
INIT_BITSET, isWhitespace, parseContent, parseToken, parseValue, skipWhiteSpace
-
Field Details
-
INSTANCE
Deprecated. -
DQUOTE
public static final char DQUOTEDeprecated.Double quote- See Also:
-
ESCAPE
public static final char ESCAPEDeprecated.Backward slash / escape character- See Also:
-
-
Constructor Details
-
TokenParser
public TokenParser()Deprecated.
-
-
Method Details
-
parseToken
Deprecated. -
parseValue
Deprecated. -
skipWhiteSpace
Deprecated. -
copyContent
public void copyContent(CharSequence buf, ParserCursor cursor, BitSet delimiters, StringBuilder dst) Deprecated. -
copyContent
public void copyContent(CharSequence buf, Tokenizer.Cursor cursor, BitSet delimiters, StringBuilder dst) Deprecated.Description copied from class:TokenizerTransfers content into the destination buffer until a whitespace character or any of the given delimiters is encountered.- Overrides:
copyContentin classTokenizer- Parameters:
buf- buffer with the sequence of chars to be parsedcursor- defines the bounds and current position of the bufferdelimiters- set of delimiting characters. Can benullif the value is delimited by a whitespace only.dst- destination buffer
-
copyUnquotedContent
public void copyUnquotedContent(CharSequence buf, ParserCursor cursor, BitSet delimiters, StringBuilder dst) Deprecated. -
copyUnquotedContent
public void copyUnquotedContent(CharSequence buf, Tokenizer.Cursor cursor, BitSet delimiters, StringBuilder dst) Deprecated.Description copied from class:TokenizerTransfers content into the destination buffer until a whitespace character, a quote, or any of the given delimiters is encountered.- Overrides:
copyUnquotedContentin classTokenizer- Parameters:
buf- buffer with the sequence of chars to be parsedcursor- defines the bounds and current position of the bufferdelimiters- set of delimiting characters. Can benullif the value is delimited by a whitespace or a quote only.dst- destination buffer
-
copyQuotedContent
Deprecated. -
copyQuotedContent
Deprecated.Description copied from class:TokenizerTransfers content enclosed with quote marks into the destination buffer.- Overrides:
copyQuotedContentin classTokenizer- Parameters:
buf- buffer with the sequence of chars to be parsedcursor- defines the bounds and current position of the bufferdst- destination buffer
-
Tokenizer