HTTPTokener

public class HTTPTokener extends JSONTokener

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

Author:JSON.org

Constructors

HTTPTokener

public HTTPTokener(String string)

Construct an HTTPTokener from a string.

Parameters:
  • string – A source string.

Methods

nextToken

public String nextToken()

Get the next token or string. This is used in parsing HTTP headers.

Throws:
Returns:

A String.