Class Overview
The HTTPTokener extends the JSONTokener to provide additional methods
for the parsing of HTTP headers.
Summary
Public Constructors |
|
HTTPTokener(String string)
Construct an HTTPTokener from a string.
|
[Expand]
Inherited Methods |
From class
org.json.JSONTokener
void
|
back()
Back up one character.
|
static
int
|
dehexchar(char c)
Get the hex value of a character (base16).
|
boolean
|
end()
|
boolean
|
more()
Determine if the source string still contains characters that next()
can consume.
|
String
|
next(int n)
Get the next n characters.
|
char
|
next()
Get the next character in the source string.
|
char
|
next(char c)
Consume the next character, and check that it matches a specified
character.
|
char
|
nextClean()
Get the next char in the string, skipping whitespace.
|
String
|
nextString(char quote)
Return the characters up to the next close quote character.
|
String
|
nextTo(char delimiter)
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 delimiter
characters or the end of line, whichever comes first.
|
Object
|
nextValue()
Get the next value.
|
char
|
skipTo(char to)
Skip characters until the next character is the requested character.
|
JSONException
|
syntaxError(String message)
Make a JSONException to signal a syntax error.
|
String
|
toString()
Make a printable string of this JSONTokener.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
HTTPTokener
(String string)
Construct an HTTPTokener from a string.
Public Methods
public
String
nextToken
()
Get the next token or string. This is used in parsing HTTP headers.