Package org.json
Class HTTPTokener
- java.lang.Object
-
- org.json.JSONTokener
-
- org.json.HTTPTokener
-
@Deprecated public class HTTPTokener extends JSONTokener
Deprecated.Use javax.json or other other json libraries insteadThe HTTPTokener extends the JSONTokener to provide additional methods for the parsing of HTTP headers.
-
-
Constructor Summary
Constructors Constructor Description HTTPTokener(String string)
Deprecated.Construct an HTTPTokener from a string.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
nextToken()
Deprecated.Get the next token or string.
-
-
-
Constructor Detail
-
HTTPTokener
public HTTPTokener(String string)
Deprecated.Construct an HTTPTokener from a string.- Parameters:
string
- A source string.
-
-
Method Detail
-
nextToken
public String nextToken() throws JSONException
Deprecated.Get the next token or string. This is used in parsing HTTP headers.- Returns:
- A String.
- Throws:
JSONException
-
-