org.json

Class HTTPTokener

public class HTTPTokener extends JSONTokener

The HTTPTokener extends the JSONTokener to provide additional methods for the parsing of HTTP headers.
Constructor Summary
HTTPTokener(String s)
Construct an XMLTokener from a string.
Method Summary
StringnextToken()
Get the next token or string.

Constructor Detail

HTTPTokener

public HTTPTokener(String s)
Construct an XMLTokener from a string.

Parameters: s A source string.

Method Detail

nextToken

public String nextToken()
Get the next token or string. This is used in parsing HTTP headers.

Returns: A String.

Throws: JSONException