Package org.json
Class HTTPTokener
java.lang.Object
org.json.JSONTokener
org.json.HTTPTokener
The HTTPTokener extends the JSONTokener to provide additional methods
for the parsing of HTTP headers.
- Version:
- 2015-12-09
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.json.JSONTokener
back, close, dehexchar, end, getPrevious, more, next, next, next, nextClean, nextSimpleValue, nextString, nextTo, nextTo, nextValue, skipTo, syntaxError, syntaxError, toString
-
Constructor Details
-
HTTPTokener
Construct an HTTPTokener from a string.- Parameters:
string
- A source string.
-
-
Method Details
-
nextToken
Get the next token or string. This is used in parsing HTTP headers.- Returns:
- A String.
- Throws:
JSONException
- if a syntax error occurs
-