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