Node Director
Public Member Functions | List of all members
org.json.HTTPTokener Class Reference

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

Inheritance diagram for org.json.HTTPTokener:
org.json.JSONTokener

Public Member Functions

 HTTPTokener (String s)
 Construct an XMLTokener from a string.
String nextToken () throws ParseException
 Get the next token or string.
- Public Member Functions inherited from org.json.JSONTokener
 JSONTokener (String s)
 Construct a JSONTokener from a string.
void back ()
 Back up one character.
boolean more ()
 Determine if the source string still contains characters that next() can consume.
char next ()
 Get the next character in the source string.
char next (char c) throws ParseException
 Consume the next character, and check that it matches a specified character.
String next (int n) throws ParseException
 Get the next n characters.
char nextClean () throws java.text.ParseException
 Get the next char in the string, skipping whitespace and comments (slashslash, slashstar, and hash).
String nextString (char quote) throws ParseException
 Return the characters up to the next close quote character.
String nextTo (char d)
 Get the text up but not including the specified character or the end of line, whichever comes first.
String nextTo (String delimiters)
 Get the text up but not including one of the specified delimeter characters or the end of line, whichever comes first.
Date nextDate () throws ParseException
Object nextValue () throws ParseException
 Get the next value.
char skipTo (char to)
 Skip characters until the next character is the requested character.
void skipPast (String to)
 Skip characters until past the requested string.
ParseException syntaxError (String message)
 Make a ParseException to signal a syntax error.
String toString ()
 Make a printable string of this JSONTokener.

Additional Inherited Members

- Static Public Member Functions inherited from org.json.JSONTokener
static int dehexchar (char c)
 Get the hex value of a character (base16).
static String unescape (String s)
 Convert %hh sequences to single characters, and convert plus to space.

Detailed Description

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

Author
JSON.org
Version
0.1

Constructor & Destructor Documentation

org.json.HTTPTokener.HTTPTokener ( String  s)

Construct an XMLTokener from a string.

Parameters
sA source string.

Member Function Documentation

String org.json.HTTPTokener.nextToken ( ) throws ParseException

Get the next token or string.

This is used in parsing HTTP headers.

Exceptions
ParseException
Returns
A String.

References org.json.JSONTokener.next(), and org.json.JSONTokener.syntaxError().

Referenced by org.json.HTTP.toJSONObject().


The documentation for this class was generated from the following file: