Class TokenParser


  • @Deprecated
    @Contract(threading=IMMUTABLE)
    public class TokenParser
    extends Tokenizer
    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
    • Field Detail

      • INSTANCE

        public static final TokenParser INSTANCE
        Deprecated.
      • ESCAPE

        public static final char ESCAPE
        Deprecated.
        Backward slash / escape character
        See Also:
        Constant Field Values
    • Constructor Detail

      • TokenParser

        public TokenParser()
        Deprecated.
    • 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.
        Overrides:
        copyContent in class Tokenizer
      • 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.
        Overrides:
        copyUnquotedContent in class Tokenizer
      • 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: Tokenizer
        Transfers content enclosed with quote marks into the destination buffer.
        Overrides:
        copyQuotedContent in class Tokenizer
        Parameters:
        buf - buffer with the sequence of chars to be parsed
        cursor - defines the bounds and current position of the buffer
        dst - destination buffer