Class HTTPTokener


  • public class HTTPTokener
    extends JSONTokener
    The HTTPTokener extends the JSONTokener to provide additional methods for the parsing of HTTP headers.
    Version:
    2015-12-09
    Author:
    JSON.org
    • Constructor Detail

      • HTTPTokener

        public HTTPTokener​(java.lang.String string)
        Construct an HTTPTokener from a string.
        Parameters:
        string - A source string.
    • Method Detail

      • nextToken

        public java.lang.String nextToken()
                                   throws JSONException
        Get the next token or string. This is used in parsing HTTP headers.
        Returns:
        A String.
        Throws:
        JSONException - if a syntax error occurs