Class HTTPTokener

java.lang.Object
sec.web.json.utilities.JSONTokener
sec.web.json.utilities.HTTPTokener

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

    • HTTPTokener

      public HTTPTokener(String string)
      Construct an HTTPTokener from a string.
      Parameters:
      string - A source string.
  • Method Details

    • nextToken

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