diff --git a/META-INF/MANIFEST.MF b/META-INF/MANIFEST.MF new file mode 100644 index 0000000..025de46 --- /dev/null +++ b/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: Benjamin +Build-Jdk: 1.8.0_05 + diff --git a/allclasses-frame.html b/allclasses-frame.html new file mode 100644 index 0000000..0a63484 --- /dev/null +++ b/allclasses-frame.html @@ -0,0 +1,35 @@ + + + +
+ + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/deprecated-list.html b/deprecated-list.html new file mode 100644 index 0000000..16dd088 --- /dev/null +++ b/deprecated-list.html @@ -0,0 +1,148 @@ + + + + + + +Method and Description | +
---|
org.json.XML.stringToValue(String)
+ Use
+JSONObject.stringToValue(String) instead. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/help-doc.html b/help-doc.html new file mode 100644 index 0000000..9bff898 --- /dev/null +++ b/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object
. The interfaces do not inherit from java.lang.Object
.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2016. All Rights Reserved.
+ + diff --git a/index-all.html b/index-all.html new file mode 100644 index 0000000..088dccb --- /dev/null +++ b/index-all.html @@ -0,0 +1,1263 @@ + + + + + + +JSONString
interface allows a toJSONString()
+ method so that a class can change the behavior of
+ JSONObject.toString()
, JSONArray.toString()
,
+ and JSONWriter.value(
Object)
.NULL
object than to use Java's null
value.JSONObject.stringToValue(String)
instead.toJSONString
method allows a class to produce its own JSON
+ serialization.%
hh sequences to single characters, and
+ convert plus to space.true
or the value
+ false
.Copyright © 2016. All Rights Reserved.
+ + diff --git a/index.html b/index.html index 802992c..a915663 100644 --- a/index.html +++ b/index.html @@ -1 +1,72 @@ -Hello world + + + + + + +public class CDL
+extends java.lang.Object
++ Each row of text represents a row in a table or a data record. Each row + ends with a NEWLINE character. Each row contains one or more values. + Values are separated by commas. A value can contain any character except + for comma, unless is is wrapped in single quotes or double quotes. +
+ The first row usually contains the names of the columns. +
+ A comma delimited list can be converted into a JSONArray of JSONObjects. + The names for the elements in the JSONObjects can be taken from the names + in the first row.
Modifier and Type | +Method and Description | +
---|---|
static JSONArray |
+rowToJSONArray(JSONTokener x)
+Produce a JSONArray of strings from a row of comma delimited values.
+ |
+
static JSONObject |
+rowToJSONObject(JSONArray names,
+ JSONTokener x)
+Produce a JSONObject from a row of comma delimited text, using a
+ parallel JSONArray of strings to provides the names of the elements.
+ |
+
static java.lang.String |
+rowToString(JSONArray ja)
+Produce a comma delimited text row from a JSONArray.
+ |
+
static JSONArray |
+toJSONArray(JSONArray names,
+ JSONTokener x)
+Produce a JSONArray of JSONObjects from a comma delimited text string
+ using a supplied JSONArray as the source of element names.
+ |
+
static JSONArray |
+toJSONArray(JSONArray names,
+ java.lang.String string)
+Produce a JSONArray of JSONObjects from a comma delimited text string
+ using a supplied JSONArray as the source of element names.
+ |
+
static JSONArray |
+toJSONArray(JSONTokener x)
+Produce a JSONArray of JSONObjects from a comma delimited text string,
+ using the first row as a source of names.
+ |
+
static JSONArray |
+toJSONArray(java.lang.String string)
+Produce a JSONArray of JSONObjects from a comma delimited text string,
+ using the first row as a source of names.
+ |
+
static java.lang.String |
+toString(JSONArray ja)
+Produce a comma delimited text from a JSONArray of JSONObjects.
+ |
+
static java.lang.String |
+toString(JSONArray names,
+ JSONArray ja)
+Produce a comma delimited text from a JSONArray of JSONObjects using
+ a provided list of names.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static JSONArray rowToJSONArray(JSONTokener x) + throws JSONException+
x
- A JSONTokener of the source text.JSONException
public static JSONObject rowToJSONObject(JSONArray names, + JSONTokener x) + throws JSONException+
names
- A JSONArray of names. This is commonly obtained from the
+ first row of a comma delimited text file using the rowToJSONArray
+ method.x
- A JSONTokener of the source text.JSONException
public static java.lang.String rowToString(JSONArray ja)+
ja
- A JSONArray of strings.public static JSONArray toJSONArray(java.lang.String string) + throws JSONException+
string
- The comma delimited text.JSONException
public static JSONArray toJSONArray(JSONTokener x) + throws JSONException+
x
- The JSONTokener containing the comma delimited text.JSONException
public static JSONArray toJSONArray(JSONArray names, + java.lang.String string) + throws JSONException+
names
- A JSONArray of strings.string
- The comma delimited text.JSONException
public static JSONArray toJSONArray(JSONArray names, + JSONTokener x) + throws JSONException+
names
- A JSONArray of strings.x
- A JSONTokener of the source text.JSONException
public static java.lang.String toString(JSONArray ja) + throws JSONException+
ja
- A JSONArray of JSONObjects.JSONException
public static java.lang.String toString(JSONArray names, + JSONArray ja) + throws JSONException+
names
- A JSONArray of strings.ja
- A JSONArray of JSONObjects.JSONException
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/Cookie.html b/org/json/Cookie.html new file mode 100644 index 0000000..13ba60b --- /dev/null +++ b/org/json/Cookie.html @@ -0,0 +1,385 @@ + + + + + + +public class Cookie
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
static java.lang.String |
+escape(java.lang.String string)
+Produce a copy of a string in which the characters '+', '%', '=', ';'
+ and control characters are replaced with "%hh".
+ |
+
static JSONObject |
+toJSONObject(java.lang.String string)
+Convert a cookie specification string into a JSONObject.
+ |
+
static java.lang.String |
+toString(JSONObject jo)
+Convert a JSONObject into a cookie specification string.
+ |
+
static java.lang.String |
+unescape(java.lang.String string)
+Convert
+% hh sequences to single characters, and
+ convert plus to space. |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static java.lang.String escape(java.lang.String string)+
string
- The source string.public static JSONObject toJSONObject(java.lang.String string) + throws JSONException+
string
- The cookie specification string.JSONException
public static java.lang.String toString(JSONObject jo) + throws JSONException+
jo
- A JSONObjectJSONException
public static java.lang.String unescape(java.lang.String string)+
%
hh sequences to single characters, and
+ convert plus to space.string
- A string that may contain
+ +
(plus) and
+ %
hh sequences.Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/CookieList.html b/org/json/CookieList.html new file mode 100644 index 0000000..d47e0f0 --- /dev/null +++ b/org/json/CookieList.html @@ -0,0 +1,325 @@ + + + + + + +public class CookieList
+extends java.lang.Object
+Constructor and Description | +
---|
CookieList() |
+
Modifier and Type | +Method and Description | +
---|---|
static JSONObject |
+toJSONObject(java.lang.String string)
+Convert a cookie list into a JSONObject.
+ |
+
static java.lang.String |
+toString(JSONObject jo)
+Convert a JSONObject into a cookie list.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static JSONObject toJSONObject(java.lang.String string) + throws JSONException+
string
- A cookie list stringJSONException
public static java.lang.String toString(JSONObject jo) + throws JSONException+
jo
- A JSONObjectJSONException
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/HTTP.html b/org/json/HTTP.html new file mode 100644 index 0000000..1be7acc --- /dev/null +++ b/org/json/HTTP.html @@ -0,0 +1,398 @@ + + + + + + +public class HTTP
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
static java.lang.String |
+CRLF
+Carriage return/line feed.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static JSONObject |
+toJSONObject(java.lang.String string)
+Convert an HTTP header string into a JSONObject.
+ |
+
static java.lang.String |
+toString(JSONObject jo)
+Convert a JSONObject into an HTTP header.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String CRLF+
public static JSONObject toJSONObject(java.lang.String string) + throws JSONException+
{ + Method: "POST" (for example), + "Request-URI": "/" (for example), + "HTTP-Version": "HTTP/1.1" (for example) + }+ A response header will contain +
{ + "HTTP-Version": "HTTP/1.1" (for example), + "Status-Code": "200" (for example), + "Reason-Phrase": "OK" (for example) + }+ In addition, the other parameters in the header will be captured, using + the HTTP field names as JSON names, so that
+ Date: Sun, 26 May 2002 18:06:04 GMT + Cookie: Q=q2=PPEAsg--; B=677gi6ouf29bn&b=2&f=s + Cache-Control: no-cache+ become +
{... + Date: "Sun, 26 May 2002 18:06:04 GMT", + Cookie: "Q=q2=PPEAsg--; B=677gi6ouf29bn&b=2&f=s", + "Cache-Control": "no-cache", + ...}+ It does no further checking or conversion. It does not parse dates. + It does not do '%' transforms on URLs.
string
- An HTTP header string.JSONException
public static java.lang.String toString(JSONObject jo) + throws JSONException+
{ + Method: "POST" (for example), + "Request-URI": "/" (for example), + "HTTP-Version": "HTTP/1.1" (for example) + }+ A response header must contain +
{ + "HTTP-Version": "HTTP/1.1" (for example), + "Status-Code": "200" (for example), + "Reason-Phrase": "OK" (for example) + }+ Any other members of the JSONObject will be output as HTTP fields. + The result will end with two CRLF pairs.
jo
- A JSONObjectJSONException
- if the object does not contain enough
+ information.Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/HTTPTokener.html b/org/json/HTTPTokener.html new file mode 100644 index 0000000..6f81da9 --- /dev/null +++ b/org/json/HTTPTokener.html @@ -0,0 +1,308 @@ + + + + + + +public class HTTPTokener +extends JSONTokener+
Constructor and Description | +
---|
HTTPTokener(java.lang.String string)
+Construct an HTTPTokener from a string.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+nextToken()
+Get the next token or string.
+ |
+
back, dehexchar, end, more, next, next, next, nextClean, nextString, nextTo, nextTo, nextValue, skipTo, syntaxError, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public HTTPTokener(java.lang.String string)+
string
- A source string.public java.lang.String nextToken() + throws JSONException+
JSONException
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/JSONArray.html b/org/json/JSONArray.html new file mode 100644 index 0000000..8080eeb --- /dev/null +++ b/org/json/JSONArray.html @@ -0,0 +1,1778 @@ + + + + + + +public class JSONArray
+extends java.lang.Object
+implements java.lang.Iterable<java.lang.Object>
+get
and opt
+ methods for accessing the values by index, and put
methods for
+ adding or replacing values. The values can be any of these types:
+ Boolean
, JSONArray
, JSONObject
,
+ Number
, String
, or the
+ JSONObject.NULL object
.
+
+ The constructor can convert a JSON text into a Java object. The
+ toString
method converts to JSON text.
+
+ A get
method returns a value if one can be found, and throws an
+ exception if one cannot be found. An opt
method returns a
+ default value instead of throwing an exception, and so is useful for
+ obtaining optional values.
+
+ The generic get()
and opt()
methods return an
+ object which you can cast or query for type. There are also typed
+ get
and opt
methods that do type checking and type
+ coercion for you.
+
+ The texts produced by the toString
methods strictly conform to
+ JSON syntax rules. The constructors are more forgiving in the texts they will
+ accept:
+
,
(comma) may appear just
+ before the closing bracket.null
value will be inserted when there is ,
+ (comma) elision.'
(single
+ quote).{ } [ ] / \ : , #
and if they do not look like numbers and
+ if they are not the reserved words true
, false
, or
+ null
.Constructor and Description | +
---|
JSONArray()
+Construct an empty JSONArray.
+ |
+
JSONArray(java.util.Collection<?> collection)
+Construct a JSONArray from a Collection.
+ |
+
JSONArray(JSONTokener x)
+Construct a JSONArray from a JSONTokener.
+ |
+
JSONArray(java.lang.Object array)
+Construct a JSONArray from an array
+ |
+
JSONArray(java.lang.String source)
+Construct a JSONArray from a source JSON text.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.Object |
+get(int index)
+Get the object value associated with an index.
+ |
+
java.math.BigDecimal |
+getBigDecimal(int index)
+Get the BigDecimal value associated with an index.
+ |
+
java.math.BigInteger |
+getBigInteger(int index)
+Get the BigInteger value associated with an index.
+ |
+
boolean |
+getBoolean(int index)
+Get the boolean value associated with an index.
+ |
+
double |
+getDouble(int index)
+Get the double value associated with an index.
+ |
+
<E extends java.lang.Enum<E>> |
+getEnum(java.lang.Class<E> clazz,
+ int index)
+Get the enum value associated with an index.
+ |
+
int |
+getInt(int index)
+Get the int value associated with an index.
+ |
+
JSONArray |
+getJSONArray(int index)
+Get the JSONArray associated with an index.
+ |
+
JSONObject |
+getJSONObject(int index)
+Get the JSONObject associated with an index.
+ |
+
long |
+getLong(int index)
+Get the long value associated with an index.
+ |
+
java.lang.String |
+getString(int index)
+Get the string associated with an index.
+ |
+
boolean |
+isNull(int index)
+Determine if the value is null.
+ |
+
java.util.Iterator<java.lang.Object> |
+iterator() |
+
java.lang.String |
+join(java.lang.String separator)
+Make a string from the contents of this JSONArray.
+ |
+
int |
+length()
+Get the number of elements in the JSONArray, included nulls.
+ |
+
java.lang.Object |
+opt(int index)
+Get the optional object value associated with an index.
+ |
+
java.math.BigDecimal |
+optBigDecimal(int index,
+ java.math.BigDecimal defaultValue)
+Get the optional BigDecimal value associated with an index.
+ |
+
java.math.BigInteger |
+optBigInteger(int index,
+ java.math.BigInteger defaultValue)
+Get the optional BigInteger value associated with an index.
+ |
+
boolean |
+optBoolean(int index)
+Get the optional boolean value associated with an index.
+ |
+
boolean |
+optBoolean(int index,
+ boolean defaultValue)
+Get the optional boolean value associated with an index.
+ |
+
double |
+optDouble(int index)
+Get the optional double value associated with an index.
+ |
+
double |
+optDouble(int index,
+ double defaultValue)
+Get the optional double value associated with an index.
+ |
+
<E extends java.lang.Enum<E>> |
+optEnum(java.lang.Class<E> clazz,
+ int index)
+Get the enum value associated with a key.
+ |
+
<E extends java.lang.Enum<E>> |
+optEnum(java.lang.Class<E> clazz,
+ int index,
+ E defaultValue)
+Get the enum value associated with a key.
+ |
+
int |
+optInt(int index)
+Get the optional int value associated with an index.
+ |
+
int |
+optInt(int index,
+ int defaultValue)
+Get the optional int value associated with an index.
+ |
+
JSONArray |
+optJSONArray(int index)
+Get the optional JSONArray associated with an index.
+ |
+
JSONObject |
+optJSONObject(int index)
+Get the optional JSONObject associated with an index.
+ |
+
long |
+optLong(int index)
+Get the optional long value associated with an index.
+ |
+
long |
+optLong(int index,
+ long defaultValue)
+Get the optional long value associated with an index.
+ |
+
java.lang.String |
+optString(int index)
+Get the optional string value associated with an index.
+ |
+
java.lang.String |
+optString(int index,
+ java.lang.String defaultValue)
+Get the optional string associated with an index.
+ |
+
JSONArray |
+put(boolean value)
+Append a boolean value.
+ |
+
JSONArray |
+put(java.util.Collection<?> value)
+Put a value in the JSONArray, where the value will be a JSONArray which
+ is produced from a Collection.
+ |
+
JSONArray |
+put(double value)
+Append a double value.
+ |
+
JSONArray |
+put(int value)
+Append an int value.
+ |
+
JSONArray |
+put(int index,
+ boolean value)
+Put or replace a boolean value in the JSONArray.
+ |
+
JSONArray |
+put(int index,
+ java.util.Collection<?> value)
+Put a value in the JSONArray, where the value will be a JSONArray which
+ is produced from a Collection.
+ |
+
JSONArray |
+put(int index,
+ double value)
+Put or replace a double value.
+ |
+
JSONArray |
+put(int index,
+ int value)
+Put or replace an int value.
+ |
+
JSONArray |
+put(int index,
+ long value)
+Put or replace a long value.
+ |
+
JSONArray |
+put(int index,
+ java.util.Map<?,?> value)
+Put a value in the JSONArray, where the value will be a JSONObject that
+ is produced from a Map.
+ |
+
JSONArray |
+put(int index,
+ java.lang.Object value)
+Put or replace an object value in the JSONArray.
+ |
+
JSONArray |
+put(long value)
+Append an long value.
+ |
+
JSONArray |
+put(java.util.Map<?,?> value)
+Put a value in the JSONArray, where the value will be a JSONObject which
+ is produced from a Map.
+ |
+
JSONArray |
+put(java.lang.Object value)
+Append an object value.
+ |
+
java.lang.Object |
+remove(int index)
+Remove an index and close the hole.
+ |
+
boolean |
+similar(java.lang.Object other)
+Determine if two JSONArrays are similar.
+ |
+
JSONObject |
+toJSONObject(JSONArray names)
+Produce a JSONObject by combining a JSONArray of names with the values of
+ this JSONArray.
+ |
+
java.lang.String |
+toString()
+Make a JSON text of this JSONArray.
+ |
+
java.lang.String |
+toString(int indentFactor)
+Make a prettyprinted JSON text of this JSONArray.
+ |
+
java.io.Writer |
+write(java.io.Writer writer)
+Write the contents of the JSONArray as JSON text to a writer.
+ |
+
java.io.Writer |
+write(java.io.Writer writer,
+ int indentFactor,
+ int indent)
+Write the contents of the JSONArray as JSON text to a writer.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public JSONArray()+
public JSONArray(JSONTokener x) + throws JSONException+
x
- A JSONTokenerJSONException
- If there is a syntax error.public JSONArray(java.lang.String source) + throws JSONException+
source
- A string that begins with [
(left
+ bracket) and ends with ]
+ (right bracket).JSONException
- If there is a syntax error.public JSONArray(java.util.Collection<?> collection)+
collection
- A Collection.public JSONArray(java.lang.Object array) + throws JSONException+
JSONException
- If not an array.public java.util.Iterator<java.lang.Object> iterator()+
iterator
in interface java.lang.Iterable<java.lang.Object>
public java.lang.Object get(int index) + throws JSONException+
index
- The index must be between 0 and length() - 1.JSONException
- If there is no value for the index.public boolean getBoolean(int index) + throws JSONException+
index
- The index must be between 0 and length() - 1.JSONException
- If there is no value for the index or if the value is not
+ convertible to boolean.public double getDouble(int index) + throws JSONException+
index
- The index must be between 0 and length() - 1.JSONException
- If the key is not found or if the value cannot be converted
+ to a number.public <E extends java.lang.Enum<E>> E getEnum(java.lang.Class<E> clazz, + int index) + throws JSONException+
clazz
- The type of enum to retrieve.index
- The index must be between 0 and length() - 1.JSONException
- if the key is not found or if the value cannot be converted
+ to an enum.public java.math.BigDecimal getBigDecimal(int index) + throws JSONException+
index
- The index must be between 0 and length() - 1.JSONException
- If the key is not found or if the value cannot be converted
+ to a BigDecimal.public java.math.BigInteger getBigInteger(int index) + throws JSONException+
index
- The index must be between 0 and length() - 1.JSONException
- If the key is not found or if the value cannot be converted
+ to a BigInteger.public int getInt(int index) + throws JSONException+
index
- The index must be between 0 and length() - 1.JSONException
- If the key is not found or if the value is not a number.public JSONArray getJSONArray(int index) + throws JSONException+
index
- The index must be between 0 and length() - 1.JSONException
- If there is no value for the index. or if the value is not a
+ JSONArraypublic JSONObject getJSONObject(int index) + throws JSONException+
index
- subscriptJSONException
- If there is no value for the index or if the value is not a
+ JSONObjectpublic long getLong(int index) + throws JSONException+
index
- The index must be between 0 and length() - 1.JSONException
- If the key is not found or if the value cannot be converted
+ to a number.public java.lang.String getString(int index) + throws JSONException+
index
- The index must be between 0 and length() - 1.JSONException
- If there is no string value for the index.public boolean isNull(int index)+
index
- The index must be between 0 and length() - 1.public java.lang.String join(java.lang.String separator) + throws JSONException+
separator
string is inserted between each element. Warning:
+ This method assumes that the data structure is acyclical.separator
- A string that will be inserted between the elements.JSONException
- If the array contains an invalid number.public int length()+
public java.lang.Object opt(int index)+
index
- The index must be between 0 and length() - 1.public boolean optBoolean(int index)+
index
- The index must be between 0 and length() - 1.public boolean optBoolean(int index, + boolean defaultValue)+
index
- The index must be between 0 and length() - 1.defaultValue
- A boolean default.public double optDouble(int index)+
index
- The index must be between 0 and length() - 1.public double optDouble(int index, + double defaultValue)+
index
- subscriptdefaultValue
- The default value.public int optInt(int index)+
index
- The index must be between 0 and length() - 1.public int optInt(int index, + int defaultValue)+
index
- The index must be between 0 and length() - 1.defaultValue
- The default value.public <E extends java.lang.Enum<E>> E optEnum(java.lang.Class<E> clazz, + int index)+
clazz
- The type of enum to retrieve.index
- The index must be between 0 and length() - 1.public <E extends java.lang.Enum<E>> E optEnum(java.lang.Class<E> clazz, + int index, + E defaultValue)+
clazz
- The type of enum to retrieve.index
- The index must be between 0 and length() - 1.defaultValue
- The default in case the value is not foundpublic java.math.BigInteger optBigInteger(int index, + java.math.BigInteger defaultValue)+
index
- The index must be between 0 and length() - 1.defaultValue
- The default value.public java.math.BigDecimal optBigDecimal(int index, + java.math.BigDecimal defaultValue)+
index
- The index must be between 0 and length() - 1.defaultValue
- The default value.public JSONArray optJSONArray(int index)+
index
- subscriptpublic JSONObject optJSONObject(int index)+
index
- The index must be between 0 and length() - 1.public long optLong(int index)+
index
- The index must be between 0 and length() - 1.public long optLong(int index, + long defaultValue)+
index
- The index must be between 0 and length() - 1.defaultValue
- The default value.public java.lang.String optString(int index)+
index
- The index must be between 0 and length() - 1.public java.lang.String optString(int index, + java.lang.String defaultValue)+
index
- The index must be between 0 and length() - 1.defaultValue
- The default value.public JSONArray put(boolean value)+
value
- A boolean value.public JSONArray put(java.util.Collection<?> value)+
value
- A Collection value.public JSONArray put(double value) + throws JSONException+
value
- A double value.JSONException
- if the value is not finite.public JSONArray put(int value)+
value
- An int value.public JSONArray put(long value)+
value
- A long value.public JSONArray put(java.util.Map<?,?> value)+
value
- A Map value.public JSONArray put(java.lang.Object value)+
value
- An object value. The value should be a Boolean, Double,
+ Integer, JSONArray, JSONObject, Long, or String, or the
+ JSONObject.NULL object.public JSONArray put(int index, + boolean value) + throws JSONException+
index
- The subscript.value
- A boolean value.JSONException
- If the index is negative.public JSONArray put(int index, + java.util.Collection<?> value) + throws JSONException+
index
- The subscript.value
- A Collection value.JSONException
- If the index is negative or if the value is not finite.public JSONArray put(int index, + double value) + throws JSONException+
index
- The subscript.value
- A double value.JSONException
- If the index is negative or if the value is not finite.public JSONArray put(int index, + int value) + throws JSONException+
index
- The subscript.value
- An int value.JSONException
- If the index is negative.public JSONArray put(int index, + long value) + throws JSONException+
index
- The subscript.value
- A long value.JSONException
- If the index is negative.public JSONArray put(int index, + java.util.Map<?,?> value) + throws JSONException+
index
- The subscript.value
- The Map value.JSONException
- If the index is negative or if the the value is an invalid
+ number.public JSONArray put(int index, + java.lang.Object value) + throws JSONException+
index
- The subscript.value
- The value to put into the array. The value should be a
+ Boolean, Double, Integer, JSONArray, JSONObject, Long, or
+ String, or the JSONObject.NULL object.JSONException
- If the index is negative or if the the value is an invalid
+ number.public java.lang.Object remove(int index)+
index
- The index of the element to be removed.public boolean similar(java.lang.Object other)+
other
- The other JSONArraypublic JSONObject toJSONObject(JSONArray names) + throws JSONException+
names
- A JSONArray containing a list of key strings. These will be
+ paired with the values.JSONException
- If any of the names are null.public java.lang.String toString()+
+ Warning: This method assumes that the data structure is acyclical.
toString
in class java.lang.Object
public java.lang.String toString(int indentFactor) + throws JSONException+
indentFactor
- The number of spaces to add to each level of indentation.[
(left
+ bracket) and ending with ]
+ (right bracket).JSONException
public java.io.Writer write(java.io.Writer writer) + throws JSONException+
+ Warning: This method assumes that the data structure is acyclical.
JSONException
public java.io.Writer write(java.io.Writer writer, + int indentFactor, + int indent) + throws JSONException+
+ Warning: This method assumes that the data structure is acyclical.
writer
- Writes the serialized JSONindentFactor
- The number of spaces to add to each level of indentation.indent
- The indention of the top level.JSONException
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/JSONException.html b/org/json/JSONException.html new file mode 100644 index 0000000..3b4c095 --- /dev/null +++ b/org/json/JSONException.html @@ -0,0 +1,320 @@ + + + + + + +public class JSONException
+extends java.lang.RuntimeException
+Constructor and Description | +
---|
JSONException(java.lang.String message)
+Constructs a JSONException with an explanatory message.
+ |
+
JSONException(java.lang.String message,
+ java.lang.Throwable cause)
+Constructs a JSONException with an explanatory message and cause.
+ |
+
JSONException(java.lang.Throwable cause)
+Constructs a new JSONException with the specified cause.
+ |
+
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public JSONException(java.lang.String message)+
message
- Detail about the reason for the exception.public JSONException(java.lang.String message, + java.lang.Throwable cause)+
message
- Detail about the reason for the exception.cause
- The cause.public JSONException(java.lang.Throwable cause)+
cause
- The cause.Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/JSONML.html b/org/json/JSONML.html new file mode 100644 index 0000000..48af638 --- /dev/null +++ b/org/json/JSONML.html @@ -0,0 +1,450 @@ + + + + + + +public class JSONML
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
static JSONArray |
+toJSONArray(java.lang.String string)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONArray using the JsonML transform.
+ |
+
static JSONArray |
+toJSONArray(XMLTokener x)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONArray using the JsonML transform.
+ |
+
static JSONObject |
+toJSONObject(java.lang.String string)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONObject using the JsonML transform.
+ |
+
static JSONObject |
+toJSONObject(XMLTokener x)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONObject using the JsonML transform.
+ |
+
static java.lang.String |
+toString(JSONArray ja)
+Reverse the JSONML transformation, making an XML text from a JSONArray.
+ |
+
static java.lang.String |
+toString(JSONObject jo)
+Reverse the JSONML transformation, making an XML text from a JSONObject.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static JSONArray toJSONArray(java.lang.String string) + throws JSONException+
<[ [ ]]>
are ignored.string
- The source string.JSONException
public static JSONArray toJSONArray(XMLTokener x) + throws JSONException+
<[ [ ]]>
are ignored.x
- An XMLTokener.JSONException
public static JSONObject toJSONObject(XMLTokener x) + throws JSONException+
<[ [ ]]>
are ignored.x
- An XMLTokener of the XML source text.JSONException
public static JSONObject toJSONObject(java.lang.String string) + throws JSONException+
<[ [ ]]>
are ignored.string
- The XML source text.JSONException
public static java.lang.String toString(JSONArray ja) + throws JSONException+
ja
- A JSONArray.JSONException
public static java.lang.String toString(JSONObject jo) + throws JSONException+
jo
- A JSONObject.JSONException
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/JSONObject.html b/org/json/JSONObject.html new file mode 100644 index 0000000..433c9ce --- /dev/null +++ b/org/json/JSONObject.html @@ -0,0 +1,2197 @@ + + + + + + +public class JSONObject
+extends java.lang.Object
+get
and opt
methods for accessing
+ the values by name, and put
methods for adding or replacing
+ values by name. The values can be any of these types: Boolean
,
+ JSONArray
, JSONObject
, Number
,
+ String
, or the JSONObject.NULL
object. A
+ JSONObject constructor can be used to convert an external form JSON text
+ into an internal form whose values can be retrieved with the
+ get
and opt
methods, or to convert values into a
+ JSON text using the put
and toString
methods. A
+ get
method returns a value if one can be found, and throws an
+ exception if one cannot be found. An opt
method returns a
+ default value instead of throwing an exception, and so is useful for
+ obtaining optional values.
+
+ The generic get()
and opt()
methods return an
+ object, which you can cast or query for type. There are also typed
+ get
and opt
methods that do type checking and type
+ coercion for you. The opt methods differ from the get methods in that they
+ do not throw. Instead, they return a specified value, such as null.
+
+ The put
methods add or replace values in an object. For
+ example,
+
+
+ myString = new JSONObject() + .put("JSON", "Hello, World!").toString(); ++ + produces the string
{"JSON": "Hello, World"}
.
+
+ The texts produced by the toString
methods strictly conform to
+ the JSON syntax rules. The constructors are more forgiving in the texts they
+ will accept:
+
,
(comma) may appear just
+ before the closing brace.'
(single
+ quote).{ } [ ] / \ : , #
and if they do not look like numbers and
+ if they are not the reserved words true
, false
,
+ or null
.Modifier and Type | +Field and Description | +
---|---|
static java.lang.Object |
+NULL
+It is sometimes more convenient and less ambiguous to have a
+
+NULL object than to use Java's null value. |
+
Constructor and Description | +
---|
JSONObject()
+Construct an empty JSONObject.
+ |
+
JSONObject(JSONObject jo,
+ java.lang.String[] names)
+Construct a JSONObject from a subset of another JSONObject.
+ |
+
JSONObject(JSONTokener x)
+Construct a JSONObject from a JSONTokener.
+ |
+
JSONObject(java.util.Map<?,?> map)
+Construct a JSONObject from a Map.
+ |
+
JSONObject(java.lang.Object bean)
+Construct a JSONObject from an Object using bean getters.
+ |
+
JSONObject(java.lang.Object object,
+ java.lang.String[] names)
+Construct a JSONObject from an Object, using reflection to find the
+ public members.
+ |
+
JSONObject(java.lang.String source)
+Construct a JSONObject from a source JSON text string.
+ |
+
JSONObject(java.lang.String baseName,
+ java.util.Locale locale)
+Construct a JSONObject from a ResourceBundle.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
JSONObject |
+accumulate(java.lang.String key,
+ java.lang.Object value)
+Accumulate values under a key.
+ |
+
JSONObject |
+append(java.lang.String key,
+ java.lang.Object value)
+Append values to the array under a key.
+ |
+
static java.lang.String |
+doubleToString(double d)
+Produce a string from a double.
+ |
+
java.lang.Object |
+get(java.lang.String key)
+Get the value object associated with a key.
+ |
+
java.math.BigDecimal |
+getBigDecimal(java.lang.String key)
+Get the BigDecimal value associated with a key.
+ |
+
java.math.BigInteger |
+getBigInteger(java.lang.String key)
+Get the BigInteger value associated with a key.
+ |
+
boolean |
+getBoolean(java.lang.String key)
+Get the boolean value associated with a key.
+ |
+
double |
+getDouble(java.lang.String key)
+Get the double value associated with a key.
+ |
+
<E extends java.lang.Enum<E>> |
+getEnum(java.lang.Class<E> clazz,
+ java.lang.String key)
+Get the enum value associated with a key.
+ |
+
int |
+getInt(java.lang.String key)
+Get the int value associated with a key.
+ |
+
JSONArray |
+getJSONArray(java.lang.String key)
+Get the JSONArray value associated with a key.
+ |
+
JSONObject |
+getJSONObject(java.lang.String key)
+Get the JSONObject value associated with a key.
+ |
+
long |
+getLong(java.lang.String key)
+Get the long value associated with a key.
+ |
+
static java.lang.String[] |
+getNames(JSONObject jo)
+Get an array of field names from a JSONObject.
+ |
+
static java.lang.String[] |
+getNames(java.lang.Object object)
+Get an array of field names from an Object.
+ |
+
java.lang.String |
+getString(java.lang.String key)
+Get the string associated with a key.
+ |
+
boolean |
+has(java.lang.String key)
+Determine if the JSONObject contains a specific key.
+ |
+
JSONObject |
+increment(java.lang.String key)
+Increment a property of a JSONObject.
+ |
+
boolean |
+isNull(java.lang.String key)
+Determine if the value associated with the key is null or if there is no
+ value.
+ |
+
java.util.Iterator<java.lang.String> |
+keys()
+Get an enumeration of the keys of the JSONObject.
+ |
+
java.util.Set<java.lang.String> |
+keySet()
+Get a set of keys of the JSONObject.
+ |
+
int |
+length()
+Get the number of keys stored in the JSONObject.
+ |
+
JSONArray |
+names()
+Produce a JSONArray containing the names of the elements of this
+ JSONObject.
+ |
+
static java.lang.String |
+numberToString(java.lang.Number number)
+Produce a string from a Number.
+ |
+
java.lang.Object |
+opt(java.lang.String key)
+Get an optional value associated with a key.
+ |
+
java.math.BigDecimal |
+optBigDecimal(java.lang.String key,
+ java.math.BigDecimal defaultValue)
+Get an optional BigDecimal associated with a key, or the defaultValue if
+ there is no such key or if its value is not a number.
+ |
+
java.math.BigInteger |
+optBigInteger(java.lang.String key,
+ java.math.BigInteger defaultValue)
+Get an optional BigInteger associated with a key, or the defaultValue if
+ there is no such key or if its value is not a number.
+ |
+
boolean |
+optBoolean(java.lang.String key)
+Get an optional boolean associated with a key.
+ |
+
boolean |
+optBoolean(java.lang.String key,
+ boolean defaultValue)
+Get an optional boolean associated with a key.
+ |
+
double |
+optDouble(java.lang.String key)
+Get an optional double associated with a key, or NaN if there is no such
+ key or if its value is not a number.
+ |
+
double |
+optDouble(java.lang.String key,
+ double defaultValue)
+Get an optional double associated with a key, or the defaultValue if
+ there is no such key or if its value is not a number.
+ |
+
<E extends java.lang.Enum<E>> |
+optEnum(java.lang.Class<E> clazz,
+ java.lang.String key)
+Get the enum value associated with a key.
+ |
+
<E extends java.lang.Enum<E>> |
+optEnum(java.lang.Class<E> clazz,
+ java.lang.String key,
+ E defaultValue)
+Get the enum value associated with a key.
+ |
+
int |
+optInt(java.lang.String key)
+Get an optional int value associated with a key, or zero if there is no
+ such key or if the value is not a number.
+ |
+
int |
+optInt(java.lang.String key,
+ int defaultValue)
+Get an optional int value associated with a key, or the default if there
+ is no such key or if the value is not a number.
+ |
+
JSONArray |
+optJSONArray(java.lang.String key)
+Get an optional JSONArray associated with a key.
+ |
+
JSONObject |
+optJSONObject(java.lang.String key)
+Get an optional JSONObject associated with a key.
+ |
+
long |
+optLong(java.lang.String key)
+Get an optional long value associated with a key, or zero if there is no
+ such key or if the value is not a number.
+ |
+
long |
+optLong(java.lang.String key,
+ long defaultValue)
+Get an optional long value associated with a key, or the default if there
+ is no such key or if the value is not a number.
+ |
+
java.lang.String |
+optString(java.lang.String key)
+Get an optional string associated with a key.
+ |
+
java.lang.String |
+optString(java.lang.String key,
+ java.lang.String defaultValue)
+Get an optional string associated with a key.
+ |
+
JSONObject |
+put(java.lang.String key,
+ boolean value)
+Put a key/boolean pair in the JSONObject.
+ |
+
JSONObject |
+put(java.lang.String key,
+ java.util.Collection<?> value)
+Put a key/value pair in the JSONObject, where the value will be a
+ JSONArray which is produced from a Collection.
+ |
+
JSONObject |
+put(java.lang.String key,
+ double value)
+Put a key/double pair in the JSONObject.
+ |
+
JSONObject |
+put(java.lang.String key,
+ int value)
+Put a key/int pair in the JSONObject.
+ |
+
JSONObject |
+put(java.lang.String key,
+ long value)
+Put a key/long pair in the JSONObject.
+ |
+
JSONObject |
+put(java.lang.String key,
+ java.util.Map<?,?> value)
+Put a key/value pair in the JSONObject, where the value will be a
+ JSONObject which is produced from a Map.
+ |
+
JSONObject |
+put(java.lang.String key,
+ java.lang.Object value)
+Put a key/value pair in the JSONObject.
+ |
+
JSONObject |
+putOnce(java.lang.String key,
+ java.lang.Object value)
+Put a key/value pair in the JSONObject, but only if the key and the value
+ are both non-null, and only if there is not already a member with that
+ name.
+ |
+
JSONObject |
+putOpt(java.lang.String key,
+ java.lang.Object value)
+Put a key/value pair in the JSONObject, but only if the key and the value
+ are both non-null.
+ |
+
static java.lang.String |
+quote(java.lang.String string)
+Produce a string in double quotes with backslash sequences in all the
+ right places.
+ |
+
static java.io.Writer |
+quote(java.lang.String string,
+ java.io.Writer w) |
+
java.lang.Object |
+remove(java.lang.String key)
+Remove a name and its value, if present.
+ |
+
boolean |
+similar(java.lang.Object other)
+Determine if two JSONObjects are similar.
+ |
+
static java.lang.Object |
+stringToValue(java.lang.String string)
+Try to convert a string into a number, boolean, or null.
+ |
+
static void |
+testValidity(java.lang.Object o)
+Throw an exception if the object is a NaN or infinite number.
+ |
+
JSONArray |
+toJSONArray(JSONArray names)
+Produce a JSONArray containing the values of the members of this
+ JSONObject.
+ |
+
java.lang.String |
+toString()
+Make a JSON text of this JSONObject.
+ |
+
java.lang.String |
+toString(int indentFactor)
+Make a prettyprinted JSON text of this JSONObject.
+ |
+
static java.lang.String |
+valueToString(java.lang.Object value)
+Make a JSON text of an Object value.
+ |
+
static java.lang.Object |
+wrap(java.lang.Object object)
+Wrap an object, if necessary.
+ |
+
java.io.Writer |
+write(java.io.Writer writer)
+Write the contents of the JSONObject as JSON text to a writer.
+ |
+
java.io.Writer |
+write(java.io.Writer writer,
+ int indentFactor,
+ int indent)
+Write the contents of the JSONObject as JSON text to a writer.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final java.lang.Object NULL+
NULL
object than to use Java's null
value.
+ JSONObject.NULL.equals(null)
returns true
.
+ JSONObject.NULL.toString()
returns "null"
.public JSONObject()+
public JSONObject(JSONObject jo, + java.lang.String[] names)+
jo
- A JSONObject.names
- An array of strings.public JSONObject(JSONTokener x) + throws JSONException+
x
- A JSONTokener object containing the source string.JSONException
- If there is a syntax error in the source string or a
+ duplicated key.public JSONObject(java.util.Map<?,?> map)+
map
- A map object that can be used to initialize the contents of
+ the JSONObject.public JSONObject(java.lang.Object bean)+
"get"
or
+ "is"
followed by an uppercase letter, the method is invoked,
+ and a key and the value returned from the getter method are put into the
+ new JSONObject.
+
+ The key is formed by removing the "get"
or "is"
+ prefix. If the second remaining character is not upper case, then the
+ first character is converted to lower case.
+
+ For example, if an object has a method named "getName"
, and
+ if the result of calling object.getName()
is
+ "Larry Fine"
, then the JSONObject will contain
+ "name": "Larry Fine"
.bean
- An object that has getter methods that should be used to make
+ a JSONObject.public JSONObject(java.lang.Object object, + java.lang.String[] names)+
object
- An object that has fields that should be used to make a
+ JSONObject.names
- An array of strings, the names of the fields to be obtained
+ from the object.public JSONObject(java.lang.String source) + throws JSONException+
source
- A string beginning with {
(left
+ brace) and ending with }
+ (right brace).JSONException
- If there is a syntax error in the source string or a
+ duplicated key.public JSONObject(java.lang.String baseName, + java.util.Locale locale) + throws JSONException+
baseName
- The ResourceBundle base name.locale
- The Locale to load the ResourceBundle for.JSONException
- If any JSONExceptions are detected.public JSONObject accumulate(java.lang.String key, + java.lang.Object value) + throws JSONException+
key
- A key string.value
- An object to be accumulated under the key.JSONException
- If the value is an invalid number or if the key is null.public JSONObject append(java.lang.String key, + java.lang.Object value) + throws JSONException+
key
- A key string.value
- An object to be accumulated under the key.JSONException
- If the key is null or if the current value associated with
+ the key is not a JSONArray.public static java.lang.String doubleToString(double d)+
d
- A double.public java.lang.Object get(java.lang.String key) + throws JSONException+
key
- A key string.JSONException
- if the key is not found.public <E extends java.lang.Enum<E>> E getEnum(java.lang.Class<E> clazz, + java.lang.String key) + throws JSONException+
clazz
- The type of enum to retrieve.key
- A key string.JSONException
- if the key is not found or if the value cannot be converted
+ to an enum.public boolean getBoolean(java.lang.String key) + throws JSONException+
key
- A key string.JSONException
- if the value is not a Boolean or the String "true" or
+ "false".public java.math.BigInteger getBigInteger(java.lang.String key) + throws JSONException+
key
- A key string.JSONException
- if the key is not found or if the value cannot
+ be converted to BigInteger.public java.math.BigDecimal getBigDecimal(java.lang.String key) + throws JSONException+
key
- A key string.JSONException
- if the key is not found or if the value
+ cannot be converted to BigDecimal.public double getDouble(java.lang.String key) + throws JSONException+
key
- A key string.JSONException
- if the key is not found or if the value is not a Number
+ object and cannot be converted to a number.public int getInt(java.lang.String key) + throws JSONException+
key
- A key string.JSONException
- if the key is not found or if the value cannot be converted
+ to an integer.public JSONArray getJSONArray(java.lang.String key) + throws JSONException+
key
- A key string.JSONException
- if the key is not found or if the value is not a JSONArray.public JSONObject getJSONObject(java.lang.String key) + throws JSONException+
key
- A key string.JSONException
- if the key is not found or if the value is not a JSONObject.public long getLong(java.lang.String key) + throws JSONException+
key
- A key string.JSONException
- if the key is not found or if the value cannot be converted
+ to a long.public static java.lang.String[] getNames(JSONObject jo)+
public static java.lang.String[] getNames(java.lang.Object object)+
public java.lang.String getString(java.lang.String key) + throws JSONException+
key
- A key string.JSONException
- if there is no string value for the key.public boolean has(java.lang.String key)+
key
- A key string.public JSONObject increment(java.lang.String key) + throws JSONException+
key
- A key string.JSONException
- If there is already a property with this name that is not an
+ Integer, Long, Double, or Float.public boolean isNull(java.lang.String key)+
key
- A key string.public java.util.Iterator<java.lang.String> keys()+
public java.util.Set<java.lang.String> keySet()+
public int length()+
public JSONArray names()+
public static java.lang.String numberToString(java.lang.Number number) + throws JSONException+
number
- A NumberJSONException
- If n is a non-finite number.public java.lang.Object opt(java.lang.String key)+
key
- A key string.public <E extends java.lang.Enum<E>> E optEnum(java.lang.Class<E> clazz, + java.lang.String key)+
clazz
- The type of enum to retrieve.key
- A key string.public <E extends java.lang.Enum<E>> E optEnum(java.lang.Class<E> clazz, + java.lang.String key, + E defaultValue)+
clazz
- The type of enum to retrieve.key
- A key string.defaultValue
- The default in case the value is not foundpublic boolean optBoolean(java.lang.String key)+
key
- A key string.public boolean optBoolean(java.lang.String key, + boolean defaultValue)+
key
- A key string.defaultValue
- The default.public double optDouble(java.lang.String key)+
key
- A string which is the key.public java.math.BigInteger optBigInteger(java.lang.String key, + java.math.BigInteger defaultValue)+
key
- A key string.defaultValue
- The default.public java.math.BigDecimal optBigDecimal(java.lang.String key, + java.math.BigDecimal defaultValue)+
key
- A key string.defaultValue
- The default.public double optDouble(java.lang.String key, + double defaultValue)+
key
- A key string.defaultValue
- The default.public int optInt(java.lang.String key)+
key
- A key string.public int optInt(java.lang.String key, + int defaultValue)+
key
- A key string.defaultValue
- The default.public JSONArray optJSONArray(java.lang.String key)+
key
- A key string.public JSONObject optJSONObject(java.lang.String key)+
key
- A key string.public long optLong(java.lang.String key)+
key
- A key string.public long optLong(java.lang.String key, + long defaultValue)+
key
- A key string.defaultValue
- The default.public java.lang.String optString(java.lang.String key)+
key
- A key string.public java.lang.String optString(java.lang.String key, + java.lang.String defaultValue)+
key
- A key string.defaultValue
- The default.public JSONObject put(java.lang.String key, + boolean value) + throws JSONException+
key
- A key string.value
- A boolean which is the value.JSONException
- If the key is null.public JSONObject put(java.lang.String key, + java.util.Collection<?> value) + throws JSONException+
key
- A key string.value
- A Collection value.JSONException
public JSONObject put(java.lang.String key, + double value) + throws JSONException+
key
- A key string.value
- A double which is the value.JSONException
- If the key is null or if the number is invalid.public JSONObject put(java.lang.String key, + int value) + throws JSONException+
key
- A key string.value
- An int which is the value.JSONException
- If the key is null.public JSONObject put(java.lang.String key, + long value) + throws JSONException+
key
- A key string.value
- A long which is the value.JSONException
- If the key is null.public JSONObject put(java.lang.String key, + java.util.Map<?,?> value) + throws JSONException+
key
- A key string.value
- A Map value.JSONException
public JSONObject put(java.lang.String key, + java.lang.Object value) + throws JSONException+
key
- A key string.value
- An object which is the value. It should be of one of these
+ types: Boolean, Double, Integer, JSONArray, JSONObject, Long,
+ String, or the JSONObject.NULL object.JSONException
- If the value is non-finite number or if the key is null.public JSONObject putOnce(java.lang.String key, + java.lang.Object value) + throws JSONException+
key
- stringvalue
- objectJSONException
- if the key is a duplicatepublic JSONObject putOpt(java.lang.String key, + java.lang.Object value) + throws JSONException+
key
- A key string.value
- An object which is the value. It should be of one of these
+ types: Boolean, Double, Integer, JSONArray, JSONObject, Long,
+ String, or the JSONObject.NULL object.JSONException
- If the value is a non-finite number.public static java.lang.String quote(java.lang.String string)+
string
- A Stringpublic static java.io.Writer quote(java.lang.String string, + java.io.Writer w) + throws java.io.IOException+
java.io.IOException
public java.lang.Object remove(java.lang.String key)+
key
- The name to be removed.public boolean similar(java.lang.Object other)+
other
- The other JSONObjectpublic static java.lang.Object stringToValue(java.lang.String string)+
string
- A String.public static void testValidity(java.lang.Object o) + throws JSONException+
o
- The object to test.JSONException
- If o is a non-finite number.public JSONArray toJSONArray(JSONArray names) + throws JSONException+
names
- A JSONArray containing a list of key strings. This determines
+ the sequence of the values in the result.JSONException
- If any of the values are non-finite numbers.public java.lang.String toString()+
+ Warning: This method assumes that the data structure is acyclical.
toString
in class java.lang.Object
{
(left
+ brace) and ending with }
(right
+ brace).public java.lang.String toString(int indentFactor) + throws JSONException+
+ Warning: This method assumes that the data structure is acyclical.
indentFactor
- The number of spaces to add to each level of indentation.{
(left
+ brace) and ending with }
(right
+ brace).JSONException
- If the object contains an invalid number.public static java.lang.String valueToString(java.lang.Object value) + throws JSONException+
+ Warning: This method assumes that the data structure is acyclical.
value
- The value to be serialized.{
(left
+ brace) and ending with }
(right
+ brace).JSONException
- If the value is or contains an invalid number.public static java.lang.Object wrap(java.lang.Object object)+
object
- The object to wrappublic java.io.Writer write(java.io.Writer writer) + throws JSONException+
+ Warning: This method assumes that the data structure is acyclical.
JSONException
public java.io.Writer write(java.io.Writer writer, + int indentFactor, + int indent) + throws JSONException+
+ Warning: This method assumes that the data structure is acyclical.
writer
- Writes the serialized JSONindentFactor
- The number of spaces to add to each level of indentation.indent
- The indention of the top level.JSONException
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/JSONString.html b/org/json/JSONString.html new file mode 100644 index 0000000..c88509b --- /dev/null +++ b/org/json/JSONString.html @@ -0,0 +1,236 @@ + + + + + + +public interface JSONString
+JSONString
interface allows a toJSONString()
+ method so that a class can change the behavior of
+ JSONObject.toString()
, JSONArray.toString()
,
+ and JSONWriter.value(
Object)
. The
+ toJSONString
method will be used instead of the default behavior
+ of using the Object's toString()
method and quoting the result.Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+toJSONString()
+The
+toJSONString method allows a class to produce its own JSON
+ serialization. |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/JSONStringer.html b/org/json/JSONStringer.html new file mode 100644 index 0000000..fbaffa0 --- /dev/null +++ b/org/json/JSONStringer.html @@ -0,0 +1,346 @@ + + + + + + +public class JSONStringer +extends JSONWriter+
+ A JSONStringer instance provides a value
method for appending
+ values to the
+ text, and a key
+ method for adding keys before values in objects. There are array
+ and endArray
methods that make and bound array values, and
+ object
and endObject
methods which make and bound
+ object values. All of these methods return the JSONWriter instance,
+ permitting cascade style. For example,
+ myString = new JSONStringer() + .object() + .key("JSON") + .value("Hello, World!") + .endObject() + .toString();which produces the string
+ {"JSON":"Hello, World!"}+
+ The first method called must be array
or object
.
+ There are no methods for adding commas or colons. JSONStringer adds them for
+ you. Objects and arrays can be nested up to 20 levels deep.
+
+ This can sometimes be easier than using a JSONObject to build a string.
mode, writer
Constructor and Description | +
---|
JSONStringer()
+Make a fresh JSONStringer.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+toString()
+Return the JSON text.
+ |
+
array, endArray, endObject, key, object, value, value, value, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public JSONStringer()+
public java.lang.String toString()+
null
if there was a
+ problem in the construction of the JSON text (such as the calls to
+ array
were not properly balanced with calls to
+ endArray
).toString
in class java.lang.Object
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/JSONTokener.html b/org/json/JSONTokener.html new file mode 100644 index 0000000..5f80253 --- /dev/null +++ b/org/json/JSONTokener.html @@ -0,0 +1,681 @@ + + + + + + +public class JSONTokener
+extends java.lang.Object
+Constructor and Description | +
---|
JSONTokener(java.io.InputStream inputStream)
+Construct a JSONTokener from an InputStream.
+ |
+
JSONTokener(java.io.Reader reader)
+Construct a JSONTokener from a Reader.
+ |
+
JSONTokener(java.lang.String s)
+Construct a JSONTokener from a string.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+back()
+Back up one character.
+ |
+
static int |
+dehexchar(char c)
+Get the hex value of a character (base16).
+ |
+
boolean |
+end() |
+
boolean |
+more()
+Determine if the source string still contains characters that next()
+ can consume.
+ |
+
char |
+next()
+Get the next character in the source string.
+ |
+
char |
+next(char c)
+Consume the next character, and check that it matches a specified
+ character.
+ |
+
java.lang.String |
+next(int n)
+Get the next n characters.
+ |
+
char |
+nextClean()
+Get the next char in the string, skipping whitespace.
+ |
+
java.lang.String |
+nextString(char quote)
+Return the characters up to the next close quote character.
+ |
+
java.lang.String |
+nextTo(char delimiter)
+Get the text up but not including the specified character or the
+ end of line, whichever comes first.
+ |
+
java.lang.String |
+nextTo(java.lang.String delimiters)
+Get the text up but not including one of the specified delimiter
+ characters or the end of line, whichever comes first.
+ |
+
java.lang.Object |
+nextValue()
+Get the next value.
+ |
+
char |
+skipTo(char to)
+Skip characters until the next character is the requested character.
+ |
+
JSONException |
+syntaxError(java.lang.String message)
+Make a JSONException to signal a syntax error.
+ |
+
java.lang.String |
+toString()
+Make a printable string of this JSONTokener.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public JSONTokener(java.io.Reader reader)+
reader
- A reader.public JSONTokener(java.io.InputStream inputStream) + throws JSONException+
inputStream
- The source.JSONException
public JSONTokener(java.lang.String s)+
s
- A source string.public void back() + throws JSONException+
JSONException
public static int dehexchar(char c)+
c
- A character between '0' and '9' or between 'A' and 'F' or
+ between 'a' and 'f'.public boolean end()+
public boolean more() + throws JSONException+
JSONException
public char next() + throws JSONException+
JSONException
public char next(char c) + throws JSONException+
c
- The character to match.JSONException
- if the character does not match.public java.lang.String next(int n) + throws JSONException+
n
- The number of characters to take.JSONException
- Substring bounds error if there are not
+ n characters remaining in the source string.public char nextClean() + throws JSONException+
JSONException
public java.lang.String nextString(char quote) + throws JSONException+
quote
- The quoting character, either
+ "
(double quote) or
+ '
(single quote).JSONException
- Unterminated string.public java.lang.String nextTo(char delimiter) + throws JSONException+
delimiter
- A delimiter character.JSONException
public java.lang.String nextTo(java.lang.String delimiters) + throws JSONException+
delimiters
- A set of delimiter characters.JSONException
public java.lang.Object nextValue() + throws JSONException+
JSONException
- If syntax error.public char skipTo(char to) + throws JSONException+
to
- A character to skip to.JSONException
public JSONException syntaxError(java.lang.String message)+
message
- The error message.public java.lang.String toString()+
toString
in class java.lang.Object
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/JSONWriter.html b/org/json/JSONWriter.html new file mode 100644 index 0000000..3985447 --- /dev/null +++ b/org/json/JSONWriter.html @@ -0,0 +1,588 @@ + + + + + + +public class JSONWriter
+extends java.lang.Object
+
+ A JSONWriter instance provides a value
method for appending
+ values to the
+ text, and a key
+ method for adding keys before values in objects. There are array
+ and endArray
methods that make and bound array values, and
+ object
and endObject
methods which make and bound
+ object values. All of these methods return the JSONWriter instance,
+ permitting a cascade style. For example,
+ new JSONWriter(myWriter) + .object() + .key("JSON") + .value("Hello, World!") + .endObject();which writes
+ {"JSON":"Hello, World!"}+
+ The first method called must be array
or object
.
+ There are no methods for adding commas or colons. JSONWriter adds them for
+ you. Objects and arrays can be nested up to 20 levels deep.
+
+ This can sometimes be easier than using a JSONObject to build a string.
Modifier and Type | +Field and Description | +
---|---|
protected char |
+mode
+The current mode.
+ |
+
protected java.io.Writer |
+writer
+The writer that will receive the output.
+ |
+
Constructor and Description | +
---|
JSONWriter(java.io.Writer w)
+Make a fresh JSONWriter.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
JSONWriter |
+array()
+Begin appending a new array.
+ |
+
JSONWriter |
+endArray()
+End an array.
+ |
+
JSONWriter |
+endObject()
+End an object.
+ |
+
JSONWriter |
+key(java.lang.String string)
+Append a key.
+ |
+
JSONWriter |
+object()
+Begin appending a new object.
+ |
+
JSONWriter |
+value(boolean b)
+Append either the value
+true or the value
+ false . |
+
JSONWriter |
+value(double d)
+Append a double value.
+ |
+
JSONWriter |
+value(long l)
+Append a long value.
+ |
+
JSONWriter |
+value(java.lang.Object object)
+Append an object value.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected char mode+
protected java.io.Writer writer+
public JSONWriter(java.io.Writer w)+
public JSONWriter array() + throws JSONException+
endArray
will be appended to this array. The
+ endArray
method must be called to mark the array's end.JSONException
- If the nesting is too deep, or if the object is
+ started in the wrong place (for example as a key or after the end of the
+ outermost array or object).public JSONWriter endArray() + throws JSONException+
array
.JSONException
- If incorrectly nested.public JSONWriter endObject() + throws JSONException+
object
.JSONException
- If incorrectly nested.public JSONWriter key(java.lang.String string) + throws JSONException+
string
- A key string.JSONException
- If the key is out of place. For example, keys
+ do not belong in arrays or if the key is null.public JSONWriter object() + throws JSONException+
endObject
will be appended to this object. The
+ endObject
method must be called to mark the object's end.JSONException
- If the nesting is too deep, or if the object is
+ started in the wrong place (for example as a key or after the end of the
+ outermost array or object).public JSONWriter value(boolean b) + throws JSONException+
true
or the value
+ false
.b
- A boolean.JSONException
public JSONWriter value(double d) + throws JSONException+
d
- A double.JSONException
- If the number is not finite.public JSONWriter value(long l) + throws JSONException+
l
- A long.JSONException
public JSONWriter value(java.lang.Object object) + throws JSONException+
object
- The object to append. It can be null, or a Boolean, Number,
+ String, JSONObject, or JSONArray, or an object that implements JSONString.JSONException
- If the value is out of sequence.Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/Property.html b/org/json/Property.html new file mode 100644 index 0000000..fd776ba --- /dev/null +++ b/org/json/Property.html @@ -0,0 +1,315 @@ + + + + + + +public class Property
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
static JSONObject |
+toJSONObject(java.util.Properties properties)
+Converts a property file object into a JSONObject.
+ |
+
static java.util.Properties |
+toProperties(JSONObject jo)
+Converts the JSONObject into a property file object.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static JSONObject toJSONObject(java.util.Properties properties) + throws JSONException+
properties
- java.util.PropertiesJSONException
public static java.util.Properties toProperties(JSONObject jo) + throws JSONException+
jo
- JSONObjectJSONException
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/XML.html b/org/json/XML.html new file mode 100644 index 0000000..6f5515d --- /dev/null +++ b/org/json/XML.html @@ -0,0 +1,606 @@ + + + + + + +public class XML
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
static java.lang.Character |
+AMP
+The Character '&'.
+ |
+
static java.lang.Character |
+APOS
+The Character '''.
+ |
+
static java.lang.Character |
+BANG
+The Character '!'.
+ |
+
static java.lang.Character |
+EQ
+The Character '='.
+ |
+
static java.lang.Character |
+GT
+The Character '>'.
+ |
+
static java.lang.Character |
+LT
+The Character '<'.
+ |
+
static java.lang.Character |
+QUEST
+The Character '?'.
+ |
+
static java.lang.Character |
+QUOT
+The Character '"'.
+ |
+
static java.lang.Character |
+SLASH
+The Character '/'.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static java.lang.String |
+escape(java.lang.String string)
+Replace special characters with XML escapes:
+
+
+ & (ampersand) is replaced by &
+ < (less than) is replaced by <
+ > (greater than) is replaced by >
+ " (double quote) is replaced by "
+
+ |
+
static void |
+noSpace(java.lang.String string)
+Throw an exception if the string contains whitespace.
+ |
+
static java.lang.Object |
+stringToValue(java.lang.String string)
+Deprecated.
+
+Use
+JSONObject.stringToValue(String) instead. |
+
static JSONObject |
+toJSONObject(java.lang.String string)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONObject.
+ |
+
static java.lang.String |
+toString(java.lang.Object object)
+Convert a JSONObject into a well-formed, element-normal XML string.
+ |
+
static java.lang.String |
+toString(java.lang.Object object,
+ java.lang.String tagName)
+Convert a JSONObject into a well-formed, element-normal XML string.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.Character AMP+
public static final java.lang.Character APOS+
public static final java.lang.Character BANG+
public static final java.lang.Character EQ+
public static final java.lang.Character GT+
public static final java.lang.Character LT+
public static final java.lang.Character QUEST+
public static final java.lang.Character QUOT+
public static final java.lang.Character SLASH+
public static java.lang.String escape(java.lang.String string)+
+ & (ampersand) is replaced by & + < (less than) is replaced by < + > (greater than) is replaced by > + " (double quote) is replaced by " +
string
- The string to be escaped.public static void noSpace(java.lang.String string) + throws JSONException+
string
- A string.JSONException
public static java.lang.Object stringToValue(java.lang.String string)+
JSONObject.stringToValue(String)
instead.JSONObject.stringToValue(String)
method. Use it instead.string
- public static JSONObject toJSONObject(java.lang.String string) + throws JSONException+
<[ [ ]]>
+ are ignored.string
- The source string.JSONException
public static java.lang.String toString(java.lang.Object object) + throws JSONException+
object
- A JSONObject.JSONException
public static java.lang.String toString(java.lang.Object object, + java.lang.String tagName) + throws JSONException+
object
- A JSONObject.tagName
- The optional name of the enclosing tag.JSONException
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/XMLTokener.html b/org/json/XMLTokener.html new file mode 100644 index 0000000..2bc29c9 --- /dev/null +++ b/org/json/XMLTokener.html @@ -0,0 +1,477 @@ + + + + + + +public class XMLTokener +extends JSONTokener+
Modifier and Type | +Field and Description | +
---|---|
static java.util.HashMap<java.lang.String,java.lang.Character> |
+entity
+The table of entity values.
+ |
+
Constructor and Description | +
---|
XMLTokener(java.lang.String s)
+Construct an XMLTokener from a string.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
java.lang.String |
+nextCDATA()
+Get the text in the CDATA block.
+ |
+
java.lang.Object |
+nextContent()
+Get the next XML outer token, trimming whitespace.
+ |
+
java.lang.Object |
+nextEntity(char ampersand)
+Return the next entity.
+ |
+
java.lang.Object |
+nextMeta()
+Returns the next XML meta token.
+ |
+
java.lang.Object |
+nextToken()
+Get the next XML Token.
+ |
+
boolean |
+skipPast(java.lang.String to)
+Skip characters until past the requested string.
+ |
+
back, dehexchar, end, more, next, next, next, nextClean, nextString, nextTo, nextTo, nextValue, skipTo, syntaxError, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final java.util.HashMap<java.lang.String,java.lang.Character> entity+
public XMLTokener(java.lang.String s)+
s
- A source string.public java.lang.String nextCDATA() + throws JSONException+
]]>
.JSONException
- If the ]]>
is not found.public java.lang.Object nextContent() + throws JSONException+
JSONException
public java.lang.Object nextEntity(char ampersand) + throws JSONException+
& ' > < "
.ampersand
- An ampersand character.JSONException
- If missing ';' in XML entity.public java.lang.Object nextMeta() + throws JSONException+
< > / = ! ?
) are returned as
+ Character, and strings and names are returned as Boolean. We don't care
+ what the values actually are.JSONException
- If a string is not properly closed or if the XML
+ is badly structured.public java.lang.Object nextToken() + throws JSONException+
/ > = ! ?
or it
+ may be a string wrapped in single quotes or double quotes, or it may be a
+ name.JSONException
- If the XML is not well formed.public boolean skipPast(java.lang.String to) + throws JSONException+
to
- A string to skip past.JSONException
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/CDL.html b/org/json/class-use/CDL.html new file mode 100644 index 0000000..38e2a10 --- /dev/null +++ b/org/json/class-use/CDL.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/Cookie.html b/org/json/class-use/Cookie.html new file mode 100644 index 0000000..e9abd09 --- /dev/null +++ b/org/json/class-use/Cookie.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/CookieList.html b/org/json/class-use/CookieList.html new file mode 100644 index 0000000..d2028d9 --- /dev/null +++ b/org/json/class-use/CookieList.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/HTTP.html b/org/json/class-use/HTTP.html new file mode 100644 index 0000000..158ed56 --- /dev/null +++ b/org/json/class-use/HTTP.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/HTTPTokener.html b/org/json/class-use/HTTPTokener.html new file mode 100644 index 0000000..9050b2c --- /dev/null +++ b/org/json/class-use/HTTPTokener.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/JSONArray.html b/org/json/class-use/JSONArray.html new file mode 100644 index 0000000..214969c --- /dev/null +++ b/org/json/class-use/JSONArray.html @@ -0,0 +1,401 @@ + + + + + + +Modifier and Type | +Method and Description | +
---|---|
JSONArray |
+JSONArray.getJSONArray(int index)
+Get the JSONArray associated with an index.
+ |
+
JSONArray |
+JSONObject.getJSONArray(java.lang.String key)
+Get the JSONArray value associated with a key.
+ |
+
JSONArray |
+JSONObject.names()
+Produce a JSONArray containing the names of the elements of this
+ JSONObject.
+ |
+
JSONArray |
+JSONArray.optJSONArray(int index)
+Get the optional JSONArray associated with an index.
+ |
+
JSONArray |
+JSONObject.optJSONArray(java.lang.String key)
+Get an optional JSONArray associated with a key.
+ |
+
JSONArray |
+JSONArray.put(boolean value)
+Append a boolean value.
+ |
+
JSONArray |
+JSONArray.put(java.util.Collection<?> value)
+Put a value in the JSONArray, where the value will be a JSONArray which
+ is produced from a Collection.
+ |
+
JSONArray |
+JSONArray.put(double value)
+Append a double value.
+ |
+
JSONArray |
+JSONArray.put(int value)
+Append an int value.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ boolean value)
+Put or replace a boolean value in the JSONArray.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ java.util.Collection<?> value)
+Put a value in the JSONArray, where the value will be a JSONArray which
+ is produced from a Collection.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ double value)
+Put or replace a double value.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ int value)
+Put or replace an int value.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ long value)
+Put or replace a long value.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ java.util.Map<?,?> value)
+Put a value in the JSONArray, where the value will be a JSONObject that
+ is produced from a Map.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ java.lang.Object value)
+Put or replace an object value in the JSONArray.
+ |
+
JSONArray |
+JSONArray.put(long value)
+Append an long value.
+ |
+
JSONArray |
+JSONArray.put(java.util.Map<?,?> value)
+Put a value in the JSONArray, where the value will be a JSONObject which
+ is produced from a Map.
+ |
+
JSONArray |
+JSONArray.put(java.lang.Object value)
+Append an object value.
+ |
+
static JSONArray |
+CDL.rowToJSONArray(JSONTokener x)
+Produce a JSONArray of strings from a row of comma delimited values.
+ |
+
JSONArray |
+JSONObject.toJSONArray(JSONArray names)
+Produce a JSONArray containing the values of the members of this
+ JSONObject.
+ |
+
static JSONArray |
+CDL.toJSONArray(JSONArray names,
+ JSONTokener x)
+Produce a JSONArray of JSONObjects from a comma delimited text string
+ using a supplied JSONArray as the source of element names.
+ |
+
static JSONArray |
+CDL.toJSONArray(JSONArray names,
+ java.lang.String string)
+Produce a JSONArray of JSONObjects from a comma delimited text string
+ using a supplied JSONArray as the source of element names.
+ |
+
static JSONArray |
+CDL.toJSONArray(JSONTokener x)
+Produce a JSONArray of JSONObjects from a comma delimited text string,
+ using the first row as a source of names.
+ |
+
static JSONArray |
+JSONML.toJSONArray(java.lang.String string)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONArray using the JsonML transform.
+ |
+
static JSONArray |
+CDL.toJSONArray(java.lang.String string)
+Produce a JSONArray of JSONObjects from a comma delimited text string,
+ using the first row as a source of names.
+ |
+
static JSONArray |
+JSONML.toJSONArray(XMLTokener x)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONArray using the JsonML transform.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static JSONObject |
+CDL.rowToJSONObject(JSONArray names,
+ JSONTokener x)
+Produce a JSONObject from a row of comma delimited text, using a
+ parallel JSONArray of strings to provides the names of the elements.
+ |
+
static java.lang.String |
+CDL.rowToString(JSONArray ja)
+Produce a comma delimited text row from a JSONArray.
+ |
+
JSONArray |
+JSONObject.toJSONArray(JSONArray names)
+Produce a JSONArray containing the values of the members of this
+ JSONObject.
+ |
+
static JSONArray |
+CDL.toJSONArray(JSONArray names,
+ JSONTokener x)
+Produce a JSONArray of JSONObjects from a comma delimited text string
+ using a supplied JSONArray as the source of element names.
+ |
+
static JSONArray |
+CDL.toJSONArray(JSONArray names,
+ java.lang.String string)
+Produce a JSONArray of JSONObjects from a comma delimited text string
+ using a supplied JSONArray as the source of element names.
+ |
+
JSONObject |
+JSONArray.toJSONObject(JSONArray names)
+Produce a JSONObject by combining a JSONArray of names with the values of
+ this JSONArray.
+ |
+
static java.lang.String |
+JSONML.toString(JSONArray ja)
+Reverse the JSONML transformation, making an XML text from a JSONArray.
+ |
+
static java.lang.String |
+CDL.toString(JSONArray ja)
+Produce a comma delimited text from a JSONArray of JSONObjects.
+ |
+
static java.lang.String |
+CDL.toString(JSONArray names,
+ JSONArray ja)
+Produce a comma delimited text from a JSONArray of JSONObjects using
+ a provided list of names.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/JSONException.html b/org/json/class-use/JSONException.html new file mode 100644 index 0000000..39fecbd --- /dev/null +++ b/org/json/class-use/JSONException.html @@ -0,0 +1,900 @@ + + + + + + +Modifier and Type | +Method and Description | +
---|---|
JSONException |
+JSONTokener.syntaxError(java.lang.String message)
+Make a JSONException to signal a syntax error.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
JSONObject |
+JSONObject.accumulate(java.lang.String key,
+ java.lang.Object value)
+Accumulate values under a key.
+ |
+
JSONObject |
+JSONObject.append(java.lang.String key,
+ java.lang.Object value)
+Append values to the array under a key.
+ |
+
JSONWriter |
+JSONWriter.array()
+Begin appending a new array.
+ |
+
void |
+JSONTokener.back()
+Back up one character.
+ |
+
JSONWriter |
+JSONWriter.endArray()
+End an array.
+ |
+
JSONWriter |
+JSONWriter.endObject()
+End an object.
+ |
+
java.lang.Object |
+JSONArray.get(int index)
+Get the object value associated with an index.
+ |
+
java.lang.Object |
+JSONObject.get(java.lang.String key)
+Get the value object associated with a key.
+ |
+
java.math.BigDecimal |
+JSONArray.getBigDecimal(int index)
+Get the BigDecimal value associated with an index.
+ |
+
java.math.BigDecimal |
+JSONObject.getBigDecimal(java.lang.String key)
+Get the BigDecimal value associated with a key.
+ |
+
java.math.BigInteger |
+JSONArray.getBigInteger(int index)
+Get the BigInteger value associated with an index.
+ |
+
java.math.BigInteger |
+JSONObject.getBigInteger(java.lang.String key)
+Get the BigInteger value associated with a key.
+ |
+
boolean |
+JSONArray.getBoolean(int index)
+Get the boolean value associated with an index.
+ |
+
boolean |
+JSONObject.getBoolean(java.lang.String key)
+Get the boolean value associated with a key.
+ |
+
double |
+JSONArray.getDouble(int index)
+Get the double value associated with an index.
+ |
+
double |
+JSONObject.getDouble(java.lang.String key)
+Get the double value associated with a key.
+ |
+
<E extends java.lang.Enum<E>> |
+JSONArray.getEnum(java.lang.Class<E> clazz,
+ int index)
+Get the enum value associated with an index.
+ |
+
<E extends java.lang.Enum<E>> |
+JSONObject.getEnum(java.lang.Class<E> clazz,
+ java.lang.String key)
+Get the enum value associated with a key.
+ |
+
int |
+JSONArray.getInt(int index)
+Get the int value associated with an index.
+ |
+
int |
+JSONObject.getInt(java.lang.String key)
+Get the int value associated with a key.
+ |
+
JSONArray |
+JSONArray.getJSONArray(int index)
+Get the JSONArray associated with an index.
+ |
+
JSONArray |
+JSONObject.getJSONArray(java.lang.String key)
+Get the JSONArray value associated with a key.
+ |
+
JSONObject |
+JSONArray.getJSONObject(int index)
+Get the JSONObject associated with an index.
+ |
+
JSONObject |
+JSONObject.getJSONObject(java.lang.String key)
+Get the JSONObject value associated with a key.
+ |
+
long |
+JSONArray.getLong(int index)
+Get the long value associated with an index.
+ |
+
long |
+JSONObject.getLong(java.lang.String key)
+Get the long value associated with a key.
+ |
+
java.lang.String |
+JSONArray.getString(int index)
+Get the string associated with an index.
+ |
+
java.lang.String |
+JSONObject.getString(java.lang.String key)
+Get the string associated with a key.
+ |
+
JSONObject |
+JSONObject.increment(java.lang.String key)
+Increment a property of a JSONObject.
+ |
+
java.lang.String |
+JSONArray.join(java.lang.String separator)
+Make a string from the contents of this JSONArray.
+ |
+
JSONWriter |
+JSONWriter.key(java.lang.String string)
+Append a key.
+ |
+
boolean |
+JSONTokener.more()
+Determine if the source string still contains characters that next()
+ can consume.
+ |
+
char |
+JSONTokener.next()
+Get the next character in the source string.
+ |
+
char |
+JSONTokener.next(char c)
+Consume the next character, and check that it matches a specified
+ character.
+ |
+
java.lang.String |
+JSONTokener.next(int n)
+Get the next n characters.
+ |
+
java.lang.String |
+XMLTokener.nextCDATA()
+Get the text in the CDATA block.
+ |
+
char |
+JSONTokener.nextClean()
+Get the next char in the string, skipping whitespace.
+ |
+
java.lang.Object |
+XMLTokener.nextContent()
+Get the next XML outer token, trimming whitespace.
+ |
+
java.lang.Object |
+XMLTokener.nextEntity(char ampersand)
+Return the next entity.
+ |
+
java.lang.Object |
+XMLTokener.nextMeta()
+Returns the next XML meta token.
+ |
+
java.lang.String |
+JSONTokener.nextString(char quote)
+Return the characters up to the next close quote character.
+ |
+
java.lang.String |
+JSONTokener.nextTo(char delimiter)
+Get the text up but not including the specified character or the
+ end of line, whichever comes first.
+ |
+
java.lang.String |
+JSONTokener.nextTo(java.lang.String delimiters)
+Get the text up but not including one of the specified delimiter
+ characters or the end of line, whichever comes first.
+ |
+
java.lang.Object |
+XMLTokener.nextToken()
+Get the next XML Token.
+ |
+
java.lang.String |
+HTTPTokener.nextToken()
+Get the next token or string.
+ |
+
java.lang.Object |
+JSONTokener.nextValue()
+Get the next value.
+ |
+
static void |
+XML.noSpace(java.lang.String string)
+Throw an exception if the string contains whitespace.
+ |
+
static java.lang.String |
+JSONObject.numberToString(java.lang.Number number)
+Produce a string from a Number.
+ |
+
JSONWriter |
+JSONWriter.object()
+Begin appending a new object.
+ |
+
JSONArray |
+JSONArray.put(double value)
+Append a double value.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ boolean value)
+Put or replace a boolean value in the JSONArray.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ java.util.Collection<?> value)
+Put a value in the JSONArray, where the value will be a JSONArray which
+ is produced from a Collection.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ double value)
+Put or replace a double value.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ int value)
+Put or replace an int value.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ long value)
+Put or replace a long value.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ java.util.Map<?,?> value)
+Put a value in the JSONArray, where the value will be a JSONObject that
+ is produced from a Map.
+ |
+
JSONArray |
+JSONArray.put(int index,
+ java.lang.Object value)
+Put or replace an object value in the JSONArray.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ boolean value)
+Put a key/boolean pair in the JSONObject.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ java.util.Collection<?> value)
+Put a key/value pair in the JSONObject, where the value will be a
+ JSONArray which is produced from a Collection.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ double value)
+Put a key/double pair in the JSONObject.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ int value)
+Put a key/int pair in the JSONObject.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ long value)
+Put a key/long pair in the JSONObject.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ java.util.Map<?,?> value)
+Put a key/value pair in the JSONObject, where the value will be a
+ JSONObject which is produced from a Map.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ java.lang.Object value)
+Put a key/value pair in the JSONObject.
+ |
+
JSONObject |
+JSONObject.putOnce(java.lang.String key,
+ java.lang.Object value)
+Put a key/value pair in the JSONObject, but only if the key and the value
+ are both non-null, and only if there is not already a member with that
+ name.
+ |
+
JSONObject |
+JSONObject.putOpt(java.lang.String key,
+ java.lang.Object value)
+Put a key/value pair in the JSONObject, but only if the key and the value
+ are both non-null.
+ |
+
static JSONArray |
+CDL.rowToJSONArray(JSONTokener x)
+Produce a JSONArray of strings from a row of comma delimited values.
+ |
+
static JSONObject |
+CDL.rowToJSONObject(JSONArray names,
+ JSONTokener x)
+Produce a JSONObject from a row of comma delimited text, using a
+ parallel JSONArray of strings to provides the names of the elements.
+ |
+
boolean |
+XMLTokener.skipPast(java.lang.String to)
+Skip characters until past the requested string.
+ |
+
char |
+JSONTokener.skipTo(char to)
+Skip characters until the next character is the requested character.
+ |
+
static void |
+JSONObject.testValidity(java.lang.Object o)
+Throw an exception if the object is a NaN or infinite number.
+ |
+
JSONArray |
+JSONObject.toJSONArray(JSONArray names)
+Produce a JSONArray containing the values of the members of this
+ JSONObject.
+ |
+
static JSONArray |
+CDL.toJSONArray(JSONArray names,
+ JSONTokener x)
+Produce a JSONArray of JSONObjects from a comma delimited text string
+ using a supplied JSONArray as the source of element names.
+ |
+
static JSONArray |
+CDL.toJSONArray(JSONArray names,
+ java.lang.String string)
+Produce a JSONArray of JSONObjects from a comma delimited text string
+ using a supplied JSONArray as the source of element names.
+ |
+
static JSONArray |
+CDL.toJSONArray(JSONTokener x)
+Produce a JSONArray of JSONObjects from a comma delimited text string,
+ using the first row as a source of names.
+ |
+
static JSONArray |
+JSONML.toJSONArray(java.lang.String string)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONArray using the JsonML transform.
+ |
+
static JSONArray |
+CDL.toJSONArray(java.lang.String string)
+Produce a JSONArray of JSONObjects from a comma delimited text string,
+ using the first row as a source of names.
+ |
+
static JSONArray |
+JSONML.toJSONArray(XMLTokener x)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONArray using the JsonML transform.
+ |
+
JSONObject |
+JSONArray.toJSONObject(JSONArray names)
+Produce a JSONObject by combining a JSONArray of names with the values of
+ this JSONArray.
+ |
+
static JSONObject |
+Property.toJSONObject(java.util.Properties properties)
+Converts a property file object into a JSONObject.
+ |
+
static JSONObject |
+XML.toJSONObject(java.lang.String string)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONObject.
+ |
+
static JSONObject |
+JSONML.toJSONObject(java.lang.String string)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONObject using the JsonML transform.
+ |
+
static JSONObject |
+HTTP.toJSONObject(java.lang.String string)
+Convert an HTTP header string into a JSONObject.
+ |
+
static JSONObject |
+CookieList.toJSONObject(java.lang.String string)
+Convert a cookie list into a JSONObject.
+ |
+
static JSONObject |
+Cookie.toJSONObject(java.lang.String string)
+Convert a cookie specification string into a JSONObject.
+ |
+
static JSONObject |
+JSONML.toJSONObject(XMLTokener x)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONObject using the JsonML transform.
+ |
+
static java.util.Properties |
+Property.toProperties(JSONObject jo)
+Converts the JSONObject into a property file object.
+ |
+
java.lang.String |
+JSONObject.toString(int indentFactor)
+Make a prettyprinted JSON text of this JSONObject.
+ |
+
java.lang.String |
+JSONArray.toString(int indentFactor)
+Make a prettyprinted JSON text of this JSONArray.
+ |
+
static java.lang.String |
+JSONML.toString(JSONArray ja)
+Reverse the JSONML transformation, making an XML text from a JSONArray.
+ |
+
static java.lang.String |
+CDL.toString(JSONArray ja)
+Produce a comma delimited text from a JSONArray of JSONObjects.
+ |
+
static java.lang.String |
+CDL.toString(JSONArray names,
+ JSONArray ja)
+Produce a comma delimited text from a JSONArray of JSONObjects using
+ a provided list of names.
+ |
+
static java.lang.String |
+JSONML.toString(JSONObject jo)
+Reverse the JSONML transformation, making an XML text from a JSONObject.
+ |
+
static java.lang.String |
+HTTP.toString(JSONObject jo)
+Convert a JSONObject into an HTTP header.
+ |
+
static java.lang.String |
+CookieList.toString(JSONObject jo)
+Convert a JSONObject into a cookie list.
+ |
+
static java.lang.String |
+Cookie.toString(JSONObject jo)
+Convert a JSONObject into a cookie specification string.
+ |
+
static java.lang.String |
+XML.toString(java.lang.Object object)
+Convert a JSONObject into a well-formed, element-normal XML string.
+ |
+
static java.lang.String |
+XML.toString(java.lang.Object object,
+ java.lang.String tagName)
+Convert a JSONObject into a well-formed, element-normal XML string.
+ |
+
JSONWriter |
+JSONWriter.value(boolean b)
+Append either the value
+true or the value
+ false . |
+
JSONWriter |
+JSONWriter.value(double d)
+Append a double value.
+ |
+
JSONWriter |
+JSONWriter.value(long l)
+Append a long value.
+ |
+
JSONWriter |
+JSONWriter.value(java.lang.Object object)
+Append an object value.
+ |
+
static java.lang.String |
+JSONObject.valueToString(java.lang.Object value)
+Make a JSON text of an Object value.
+ |
+
java.io.Writer |
+JSONObject.write(java.io.Writer writer)
+Write the contents of the JSONObject as JSON text to a writer.
+ |
+
java.io.Writer |
+JSONArray.write(java.io.Writer writer)
+Write the contents of the JSONArray as JSON text to a writer.
+ |
+
java.io.Writer |
+JSONObject.write(java.io.Writer writer,
+ int indentFactor,
+ int indent)
+Write the contents of the JSONObject as JSON text to a writer.
+ |
+
java.io.Writer |
+JSONArray.write(java.io.Writer writer,
+ int indentFactor,
+ int indent)
+Write the contents of the JSONArray as JSON text to a writer.
+ |
+
Constructor and Description | +
---|
JSONArray(JSONTokener x)
+Construct a JSONArray from a JSONTokener.
+ |
+
JSONArray(java.lang.Object array)
+Construct a JSONArray from an array
+ |
+
JSONArray(java.lang.String source)
+Construct a JSONArray from a source JSON text.
+ |
+
JSONObject(JSONTokener x)
+Construct a JSONObject from a JSONTokener.
+ |
+
JSONObject(java.lang.String source)
+Construct a JSONObject from a source JSON text string.
+ |
+
JSONObject(java.lang.String baseName,
+ java.util.Locale locale)
+Construct a JSONObject from a ResourceBundle.
+ |
+
JSONTokener(java.io.InputStream inputStream)
+Construct a JSONTokener from an InputStream.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/JSONML.html b/org/json/class-use/JSONML.html new file mode 100644 index 0000000..554f55a --- /dev/null +++ b/org/json/class-use/JSONML.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/JSONObject.html b/org/json/class-use/JSONObject.html new file mode 100644 index 0000000..348d7e3 --- /dev/null +++ b/org/json/class-use/JSONObject.html @@ -0,0 +1,376 @@ + + + + + + +Modifier and Type | +Method and Description | +
---|---|
JSONObject |
+JSONObject.accumulate(java.lang.String key,
+ java.lang.Object value)
+Accumulate values under a key.
+ |
+
JSONObject |
+JSONObject.append(java.lang.String key,
+ java.lang.Object value)
+Append values to the array under a key.
+ |
+
JSONObject |
+JSONArray.getJSONObject(int index)
+Get the JSONObject associated with an index.
+ |
+
JSONObject |
+JSONObject.getJSONObject(java.lang.String key)
+Get the JSONObject value associated with a key.
+ |
+
JSONObject |
+JSONObject.increment(java.lang.String key)
+Increment a property of a JSONObject.
+ |
+
JSONObject |
+JSONArray.optJSONObject(int index)
+Get the optional JSONObject associated with an index.
+ |
+
JSONObject |
+JSONObject.optJSONObject(java.lang.String key)
+Get an optional JSONObject associated with a key.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ boolean value)
+Put a key/boolean pair in the JSONObject.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ java.util.Collection<?> value)
+Put a key/value pair in the JSONObject, where the value will be a
+ JSONArray which is produced from a Collection.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ double value)
+Put a key/double pair in the JSONObject.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ int value)
+Put a key/int pair in the JSONObject.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ long value)
+Put a key/long pair in the JSONObject.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ java.util.Map<?,?> value)
+Put a key/value pair in the JSONObject, where the value will be a
+ JSONObject which is produced from a Map.
+ |
+
JSONObject |
+JSONObject.put(java.lang.String key,
+ java.lang.Object value)
+Put a key/value pair in the JSONObject.
+ |
+
JSONObject |
+JSONObject.putOnce(java.lang.String key,
+ java.lang.Object value)
+Put a key/value pair in the JSONObject, but only if the key and the value
+ are both non-null, and only if there is not already a member with that
+ name.
+ |
+
JSONObject |
+JSONObject.putOpt(java.lang.String key,
+ java.lang.Object value)
+Put a key/value pair in the JSONObject, but only if the key and the value
+ are both non-null.
+ |
+
static JSONObject |
+CDL.rowToJSONObject(JSONArray names,
+ JSONTokener x)
+Produce a JSONObject from a row of comma delimited text, using a
+ parallel JSONArray of strings to provides the names of the elements.
+ |
+
JSONObject |
+JSONArray.toJSONObject(JSONArray names)
+Produce a JSONObject by combining a JSONArray of names with the values of
+ this JSONArray.
+ |
+
static JSONObject |
+Property.toJSONObject(java.util.Properties properties)
+Converts a property file object into a JSONObject.
+ |
+
static JSONObject |
+XML.toJSONObject(java.lang.String string)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONObject.
+ |
+
static JSONObject |
+JSONML.toJSONObject(java.lang.String string)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONObject using the JsonML transform.
+ |
+
static JSONObject |
+HTTP.toJSONObject(java.lang.String string)
+Convert an HTTP header string into a JSONObject.
+ |
+
static JSONObject |
+CookieList.toJSONObject(java.lang.String string)
+Convert a cookie list into a JSONObject.
+ |
+
static JSONObject |
+Cookie.toJSONObject(java.lang.String string)
+Convert a cookie specification string into a JSONObject.
+ |
+
static JSONObject |
+JSONML.toJSONObject(XMLTokener x)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONObject using the JsonML transform.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static java.lang.String[] |
+JSONObject.getNames(JSONObject jo)
+Get an array of field names from a JSONObject.
+ |
+
static java.util.Properties |
+Property.toProperties(JSONObject jo)
+Converts the JSONObject into a property file object.
+ |
+
static java.lang.String |
+JSONML.toString(JSONObject jo)
+Reverse the JSONML transformation, making an XML text from a JSONObject.
+ |
+
static java.lang.String |
+HTTP.toString(JSONObject jo)
+Convert a JSONObject into an HTTP header.
+ |
+
static java.lang.String |
+CookieList.toString(JSONObject jo)
+Convert a JSONObject into a cookie list.
+ |
+
static java.lang.String |
+Cookie.toString(JSONObject jo)
+Convert a JSONObject into a cookie specification string.
+ |
+
Constructor and Description | +
---|
JSONObject(JSONObject jo,
+ java.lang.String[] names)
+Construct a JSONObject from a subset of another JSONObject.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/JSONString.html b/org/json/class-use/JSONString.html new file mode 100644 index 0000000..a7bbb36 --- /dev/null +++ b/org/json/class-use/JSONString.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/JSONStringer.html b/org/json/class-use/JSONStringer.html new file mode 100644 index 0000000..7a563e6 --- /dev/null +++ b/org/json/class-use/JSONStringer.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/JSONTokener.html b/org/json/class-use/JSONTokener.html new file mode 100644 index 0000000..a659531 --- /dev/null +++ b/org/json/class-use/JSONTokener.html @@ -0,0 +1,215 @@ + + + + + + +Modifier and Type | +Class and Description | +
---|---|
class |
+HTTPTokener
+The HTTPTokener extends the JSONTokener to provide additional methods
+ for the parsing of HTTP headers.
+ |
+
class |
+XMLTokener
+The XMLTokener extends the JSONTokener to provide additional methods
+ for the parsing of XML texts.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static JSONArray |
+CDL.rowToJSONArray(JSONTokener x)
+Produce a JSONArray of strings from a row of comma delimited values.
+ |
+
static JSONObject |
+CDL.rowToJSONObject(JSONArray names,
+ JSONTokener x)
+Produce a JSONObject from a row of comma delimited text, using a
+ parallel JSONArray of strings to provides the names of the elements.
+ |
+
static JSONArray |
+CDL.toJSONArray(JSONArray names,
+ JSONTokener x)
+Produce a JSONArray of JSONObjects from a comma delimited text string
+ using a supplied JSONArray as the source of element names.
+ |
+
static JSONArray |
+CDL.toJSONArray(JSONTokener x)
+Produce a JSONArray of JSONObjects from a comma delimited text string,
+ using the first row as a source of names.
+ |
+
Constructor and Description | +
---|
JSONArray(JSONTokener x)
+Construct a JSONArray from a JSONTokener.
+ |
+
JSONObject(JSONTokener x)
+Construct a JSONObject from a JSONTokener.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/JSONWriter.html b/org/json/class-use/JSONWriter.html new file mode 100644 index 0000000..c478365 --- /dev/null +++ b/org/json/class-use/JSONWriter.html @@ -0,0 +1,215 @@ + + + + + + +Modifier and Type | +Class and Description | +
---|---|
class |
+JSONStringer
+JSONStringer provides a quick and convenient way of producing JSON text.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
JSONWriter |
+JSONWriter.array()
+Begin appending a new array.
+ |
+
JSONWriter |
+JSONWriter.endArray()
+End an array.
+ |
+
JSONWriter |
+JSONWriter.endObject()
+End an object.
+ |
+
JSONWriter |
+JSONWriter.key(java.lang.String string)
+Append a key.
+ |
+
JSONWriter |
+JSONWriter.object()
+Begin appending a new object.
+ |
+
JSONWriter |
+JSONWriter.value(boolean b)
+Append either the value
+true or the value
+ false . |
+
JSONWriter |
+JSONWriter.value(double d)
+Append a double value.
+ |
+
JSONWriter |
+JSONWriter.value(long l)
+Append a long value.
+ |
+
JSONWriter |
+JSONWriter.value(java.lang.Object object)
+Append an object value.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/Property.html b/org/json/class-use/Property.html new file mode 100644 index 0000000..3396dde --- /dev/null +++ b/org/json/class-use/Property.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/XML.html b/org/json/class-use/XML.html new file mode 100644 index 0000000..93ef77c --- /dev/null +++ b/org/json/class-use/XML.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/class-use/XMLTokener.html b/org/json/class-use/XMLTokener.html new file mode 100644 index 0000000..86648f4 --- /dev/null +++ b/org/json/class-use/XMLTokener.html @@ -0,0 +1,159 @@ + + + + + + +Modifier and Type | +Method and Description | +
---|---|
static JSONArray |
+JSONML.toJSONArray(XMLTokener x)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONArray using the JsonML transform.
+ |
+
static JSONObject |
+JSONML.toJSONObject(XMLTokener x)
+Convert a well-formed (but not necessarily valid) XML string into a
+ JSONObject using the JsonML transform.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/package-frame.html b/org/json/package-frame.html new file mode 100644 index 0000000..457bc78 --- /dev/null +++ b/org/json/package-frame.html @@ -0,0 +1,42 @@ + + + + + + +Interface | +Description | +
---|---|
JSONString | +
+ The
+JSONString interface allows a toJSONString()
+ method so that a class can change the behavior of
+ JSONObject.toString() , JSONArray.toString() ,
+ and JSONWriter.value( Object) . |
+
Class | +Description | +
---|---|
CDL | +
+ This provides static methods to convert comma delimited text into a
+ JSONArray, and to convert a JSONArray into comma delimited text.
+ |
+
Cookie | +
+ Convert a web browser cookie specification to a JSONObject and back.
+ |
+
CookieList | +
+ Convert a web browser cookie list string to a JSONObject and back.
+ |
+
HTTP | +
+ Convert an HTTP header to a JSONObject and back.
+ |
+
HTTPTokener | +
+ The HTTPTokener extends the JSONTokener to provide additional methods
+ for the parsing of HTTP headers.
+ |
+
JSONArray | +
+ A JSONArray is an ordered sequence of values.
+ |
+
JSONML | +
+ This provides static methods to convert an XML text into a JSONArray or
+ JSONObject, and to covert a JSONArray or JSONObject into an XML text using
+ the JsonML transform.
+ |
+
JSONObject | +
+ A JSONObject is an unordered collection of name/value pairs.
+ |
+
JSONStringer | +
+ JSONStringer provides a quick and convenient way of producing JSON text.
+ |
+
JSONTokener | +
+ A JSONTokener takes a source string and extracts characters and tokens from
+ it.
+ |
+
JSONWriter | +
+ JSONWriter provides a quick and convenient way of producing JSON text.
+ |
+
Property | +
+ Converts a Property file data into JSONObject and back.
+ |
+
XML | +
+ This provides static methods to convert an XML text into a JSONObject, and to
+ covert a JSONObject into an XML text.
+ |
+
XMLTokener | +
+ The XMLTokener extends the JSONTokener to provide additional methods
+ for the parsing of XML texts.
+ |
+
Exception | +Description | +
---|---|
JSONException | +
+ The JSONException is thrown by the JSON.org classes when things are amiss.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/package-tree.html b/org/json/package-tree.html new file mode 100644 index 0000000..0e42348 --- /dev/null +++ b/org/json/package-tree.html @@ -0,0 +1,169 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/org/json/package-use.html b/org/json/package-use.html new file mode 100644 index 0000000..038a452 --- /dev/null +++ b/org/json/package-use.html @@ -0,0 +1,171 @@ + + + + + + +Class and Description | +
---|
JSONArray
+ A JSONArray is an ordered sequence of values.
+ |
+
JSONException
+ The JSONException is thrown by the JSON.org classes when things are amiss.
+ |
+
JSONObject
+ A JSONObject is an unordered collection of name/value pairs.
+ |
+
JSONTokener
+ A JSONTokener takes a source string and extracts characters and tokens from
+ it.
+ |
+
JSONWriter
+ JSONWriter provides a quick and convenient way of producing JSON text.
+ |
+
XMLTokener
+ The XMLTokener extends the JSONTokener to provide additional methods
+ for the parsing of XML texts.
+ |
+
Copyright © 2016. All Rights Reserved.
+ + diff --git a/overview-tree.html b/overview-tree.html new file mode 100644 index 0000000..4710969 --- /dev/null +++ b/overview-tree.html @@ -0,0 +1,173 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/package-list b/package-list new file mode 100644 index 0000000..6374a8e --- /dev/null +++ b/package-list @@ -0,0 +1 @@ +org.json diff --git a/script.js b/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/serialized-form.html b/serialized-form.html new file mode 100644 index 0000000..0d203b4 --- /dev/null +++ b/serialized-form.html @@ -0,0 +1,141 @@ + + + + + + +Copyright © 2016. All Rights Reserved.
+ + diff --git a/stylesheet.css b/stylesheet.css new file mode 100644 index 0000000..cebb4fd --- /dev/null +++ b/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; + width:100%; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +}