Package org.json

Class HTTPTokener


  • @Deprecated
    public class HTTPTokener
    extends JSONTokener
    Deprecated.
    Use javax.json or other other json libraries instead
    The HTTPTokener extends the JSONTokener to provide additional methods for the parsing of HTTP headers.
    • Constructor Detail

      • HTTPTokener

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

      • nextToken

        public java.lang.String nextToken()
                                   throws JSONException
        Deprecated.
        Get the next token or string. This is used in parsing HTTP headers.
        Returns:
        A String.
        Throws:
        JSONException