# Class HTTPTokener

java.lang.Object
org.daypilot.json.JSONTokener
org.daypilot.json.HTTPTokener

public class HTTPTokener extends JSONTokener
The HTTPTokener extends the JSONTokener to provide additional methods for the parsing of HTTP headers.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `HTTPTokener(String s)`
  Construct an XMLTokener from a string.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `nextToken()`
  Get the next token or string.

  ### Methods inherited from class org.daypilot.json.JSONTokener

  `back, dehexchar, more, next, next, next, nextClean, nextString, nextTo, nextTo, nextValue, skipTo, syntaxError, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### HTTPTokener

    public HTTPTokener(String s)
    Construct an XMLTokener from a string.
    Parameters:
      `s` - 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`