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 @Contract(threading=IMMUTABLE) public class TokenParser extends Tokenizer
Deprecated.UseTokenizerLow 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
-
-
Constructor Summary
Constructors Constructor Description TokenParser()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcopyContent(java.lang.CharSequence buf, ParserCursor cursor, java.util.BitSet delimiters, java.lang.StringBuilder dst)Deprecated.voidcopyContent(java.lang.CharSequence buf, Tokenizer.Cursor cursor, java.util.BitSet delimiters, java.lang.StringBuilder dst)Deprecated.Transfers content into the destination buffer until a whitespace character or any of the given delimiters is encountered.voidcopyQuotedContent(java.lang.CharSequence buf, ParserCursor cursor, java.lang.StringBuilder dst)Deprecated.voidcopyQuotedContent(java.lang.CharSequence buf, Tokenizer.Cursor cursor, java.lang.StringBuilder dst)Deprecated.Transfers content enclosed with quote marks into the destination buffer.voidcopyUnquotedContent(java.lang.CharSequence buf, ParserCursor cursor, java.util.BitSet delimiters, java.lang.StringBuilder dst)Deprecated.voidcopyUnquotedContent(java.lang.CharSequence buf, Tokenizer.Cursor cursor, java.util.BitSet delimiters, java.lang.StringBuilder dst)Deprecated.Transfers content into the destination buffer until a whitespace character, a quote, or any of the given delimiters is encountered.java.lang.StringparseToken(java.lang.CharSequence buf, ParserCursor cursor, java.util.BitSet delimiters)Deprecated.java.lang.StringparseValue(java.lang.CharSequence buf, ParserCursor cursor, java.util.BitSet delimiters)Deprecated.voidskipWhiteSpace(java.lang.CharSequence buf, ParserCursor cursor)Deprecated.-
Methods inherited from class org.apache.hc.core5.util.Tokenizer
INIT_BITSET, isWhitespace, parseContent, parseToken, parseValue, skipWhiteSpace
-
-
-
-
Field Detail
-
INSTANCE
public static final TokenParser INSTANCE
Deprecated.
-
DQUOTE
public static final char DQUOTE
Deprecated.Double quote- See Also:
- Constant Field Values
-
ESCAPE
public static final char ESCAPE
Deprecated.Backward slash / escape character- See Also:
- Constant Field Values
-
-
Method Detail
-
parseToken
public java.lang.String parseToken(java.lang.CharSequence buf, ParserCursor cursor, java.util.BitSet delimiters)Deprecated.
-
parseValue
public java.lang.String parseValue(java.lang.CharSequence buf, ParserCursor cursor, java.util.BitSet delimiters)Deprecated.
-
skipWhiteSpace
public void skipWhiteSpace(java.lang.CharSequence buf, ParserCursor cursor)Deprecated.
-
copyContent
public void copyContent(java.lang.CharSequence buf, ParserCursor cursor, java.util.BitSet delimiters, java.lang.StringBuilder dst)Deprecated.
-
copyContent
public void copyContent(java.lang.CharSequence buf, Tokenizer.Cursor cursor, java.util.BitSet delimiters, java.lang.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(java.lang.CharSequence buf, ParserCursor cursor, java.util.BitSet delimiters, java.lang.StringBuilder dst)Deprecated.
-
copyUnquotedContent
public void copyUnquotedContent(java.lang.CharSequence buf, Tokenizer.Cursor cursor, java.util.BitSet delimiters, java.lang.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
public void copyQuotedContent(java.lang.CharSequence buf, ParserCursor cursor, java.lang.StringBuilder dst)Deprecated.
-
copyQuotedContent
public void copyQuotedContent(java.lang.CharSequence buf, Tokenizer.Cursor cursor, java.lang.StringBuilder dst)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
-
-