|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxv.json.JSON
public class JSON
Main utility class for dealing with JSON.
Constructor Summary | |
---|---|
JSON()
|
Method Summary | |
---|---|
static JSONVariant |
parse(InputStream in)
Parse the given input as JSON. |
static JSONVariant |
parse(Reader reader)
Parse the given input as JSON. |
static JSONVariant |
parse(String string)
Parses the given string as a JSON document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSON()
Method Detail |
---|
public static JSONVariant parse(InputStream in) throws IOException, JSONException
in
- the stream to read from
IOException
- if an I/O exception occurs
JSONException
- if an error occurs parsing the JSON contentpublic static JSONVariant parse(String string) throws JSONException
string
- the string to parse
JSONException
- if an error occurs parsing the JSON contentpublic static JSONVariant parse(Reader reader) throws IOException, JSONException
in
- the reader to read from
IOException
- if an I/O exception occurs
JSONException
- if an error occurs parsing the JSON content
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |