Package com.util.org.json
Class HTTPTokener
- java.lang.Object
-
- com.util.org.json.JSONTokener
-
- com.util.org.json.HTTPTokener
-
public class HTTPTokener extends JSONTokener
The HTTPTokener extends the JSONTokener to provide additional methods for the parsing of HTTP headers.- Version:
- 2015-12-09
- Author:
- JSON.org
-
-
Constructor Summary
Constructors Constructor Description HTTPTokener(java.lang.String string)
Construct an HTTPTokener from a string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
nextToken()
Get the next token or string.-
Methods inherited from class com.util.org.json.JSONTokener
back, dehexchar, end, more, next, next, next, nextClean, nextString, nextTo, nextTo, nextValue, skipTo, syntaxError, syntaxError, toString
-
-
-
-
Method Detail
-
nextToken
public java.lang.String nextToken() throws JSONException
Get the next token or string. This is used in parsing HTTP headers.- Returns:
- A String.
- Throws:
JSONException
- if a syntax error occurs
-
-