Package ej.rest.json
Class HTTPTokener
- java.lang.Object
-
- org.json.me.JSONTokener
-
- ej.rest.json.HTTPTokener
-
public class HTTPTokener extends JSONTokener
The HTTPTokener extends the JSONTokener to provide additional methods for the parsing of HTTP headers.
-
-
Constructor Summary
Constructors Constructor Description HTTPTokener(String s)Construct an HTTPTokener from a string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringnextToken()Get the next token or string.-
Methods inherited from class org.json.me.JSONTokener
back, dehexchar, end, more, next, next, next, nextClean, nextString, nextTo, nextTo, nextValue, skipTo, syntaxError, syntaxError, toString
-
-
-
-
Constructor Detail
-
HTTPTokener
public HTTPTokener(String s)
Construct an HTTPTokener from a string.- Parameters:
s- A source string.
-
-
Method Detail
-
nextToken
public String nextToken() throws JSONException
Get the next token or string. This is used in parsing HTTP headers.- Returns:
- A String.
- Throws:
JSONException
-
-