org.apache.sling.commons.json.http
Class HTTPTokener
java.lang.Object
org.apache.sling.commons.json.JSONTokener
org.apache.sling.commons.json.http.HTTPTokener
public class HTTPTokener
- extends JSONTokener
The HTTPTokener extends the JSONTokener to provide additional methods
for the parsing of HTTP headers.
- Version:
- 2
- Author:
- JSON.org
Methods inherited from class org.apache.sling.commons.json.JSONTokener |
back, dehexchar, more, next, next, next, nextClean, nextString, nextTo, nextTo, nextValue, skipPast, skipTo, syntaxError, toString |
HTTPTokener
public HTTPTokener(String s)
- Construct an XMLTokener from a string.
- Parameters:
s
- A source string.
nextToken
public String nextToken()
throws JSONException
- Get the next token or string. This is used in parsing HTTP headers.
- Returns:
- A String.
- Throws:
JSONException
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.