- generate() - Method in class org.json.zip.Huff
-
Generate the encoding/decoding table.
- get(int) - Method in class org.json.JSONArray
-
Get the object value associated with an index.
- get(String) - Method in class org.json.JSONObject
-
Get the value object associated with a key.
- get(int) - Method in class org.json.Kim
-
Get a byte from a kim.
- getBoolean(int) - Method in class org.json.JSONArray
-
Get the boolean value associated with an index.
- getBoolean(String) - Method in class org.json.JSONObject
-
Get the boolean value associated with a key.
- getCause() - Method in exception org.json.JSONException
-
Returns the cause of this exception or null if the cause is nonexistent
or unknown.
- getDouble(int) - Method in class org.json.JSONArray
-
Get the double value associated with an index.
- getDouble(String) - Method in class org.json.JSONObject
-
Get the double value associated with a key.
- getInt(int) - Method in class org.json.JSONArray
-
Get the int value associated with an index.
- getInt(String) - Method in class org.json.JSONObject
-
Get the int value associated with a key.
- getJSONArray(int) - Method in class org.json.JSONArray
-
Get the JSONArray associated with an index.
- getJSONArray(String) - Method in class org.json.JSONObject
-
Get the JSONArray value associated with a key.
- getJSONObject(int) - Method in class org.json.JSONArray
-
Get the JSONObject associated with an index.
- getJSONObject(String) - Method in class org.json.JSONObject
-
Get the JSONObject value associated with a key.
- getLong(int) - Method in class org.json.JSONArray
-
Get the long value associated with an index.
- getLong(String) - Method in class org.json.JSONObject
-
Get the long value associated with a key.
- getNames(JSONObject) - Static method in class org.json.JSONObject
-
Get an array of field names from a JSONObject.
- getNames(Object) - Static method in class org.json.JSONObject
-
Get an array of field names from an Object.
- getString(int) - Method in class org.json.JSONArray
-
Get the string associated with an index.
- getString(String) - Method in class org.json.JSONObject
-
Get the string associated with a key.
- GT - Static variable in class org.json.XML
-
The Character '>'.
- join(String) - Method in class org.json.JSONArray
-
Make a string from the contents of this JSONArray.
- JSONArray - Class in org.json
-
A JSONArray is an ordered sequence of values.
- JSONArray() - Constructor for class org.json.JSONArray
-
Construct an empty JSONArray.
- JSONArray(JSONTokener) - Constructor for class org.json.JSONArray
-
Construct a JSONArray from a JSONTokener.
- JSONArray(String) - Constructor for class org.json.JSONArray
-
Construct a JSONArray from a source JSON text.
- JSONArray(Collection) - Constructor for class org.json.JSONArray
-
Construct a JSONArray from a Collection.
- JSONArray(Object) - Constructor for class org.json.JSONArray
-
Construct a JSONArray from an array
- JSONException - Exception in org.json
-
The JSONException is thrown by the JSON.org classes when things are amiss.
- JSONException(String) - Constructor for exception org.json.JSONException
-
Constructs a JSONException with an explanatory message.
- JSONException(Throwable) - Constructor for exception org.json.JSONException
-
Constructs a new JSONException with the specified cause.
- JSONML - Class in org.json
-
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.
- JSONML() - Constructor for class org.json.JSONML
-
- JSONObject - Class in org.json
-
A JSONObject is an unordered collection of name/value pairs.
- JSONObject() - Constructor for class org.json.JSONObject
-
Construct an empty JSONObject.
- JSONObject(JSONObject, String[]) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from a subset of another JSONObject.
- JSONObject(JSONTokener) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from a JSONTokener.
- JSONObject(Map) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from a Map.
- JSONObject(Object) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from an Object using bean getters.
- JSONObject(Object, String[]) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from an Object, using reflection to find the
public members.
- JSONObject(String) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from a source JSON text string.
- JSONObject(String, Locale) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from a ResourceBundle.
- JSONString - Interface in org.json
-
The JSONString
interface allows a toJSONString()
method so that a class can change the behavior of
JSONObject.toString()
, JSONArray.toString()
,
and JSONWriter.value(
Object)
.
- JSONStringer - Class in org.json
-
JSONStringer provides a quick and convenient way of producing JSON text.
- JSONStringer() - Constructor for class org.json.JSONStringer
-
Make a fresh JSONStringer.
- JSONTokener - Class in org.json
-
A JSONTokener takes a source string and extracts characters and tokens from
it.
- JSONTokener(Reader) - Constructor for class org.json.JSONTokener
-
Construct a JSONTokener from a Reader.
- JSONTokener(InputStream) - Constructor for class org.json.JSONTokener
-
Construct a JSONTokener from an InputStream.
- JSONTokener(String) - Constructor for class org.json.JSONTokener
-
Construct a JSONTokener from a string.
- JSONWriter - Class in org.json
-
JSONWriter provides a quick and convenient way of producing JSON text.
- JSONWriter(Writer) - Constructor for class org.json.JSONWriter
-
Make a fresh JSONWriter.
- JSONzip - Class in org.json.zip
-
JSONzip is a binary-encoded JSON dialect.
- JSONzip() - Constructor for class org.json.zip.JSONzip
-
Initialize the data structures.
- namehuff - Variable in class org.json.zip.JSONzip
-
A Huffman encoder for names.
- namekeep - Variable in class org.json.zip.JSONzip
-
A place to keep the names (keys).
- names() - Method in class org.json.JSONObject
-
Produce a JSONArray containing the names of the elements of this
JSONObject.
- next() - Method in class org.json.JSONTokener
-
Get the next character in the source string.
- next(char) - Method in class org.json.JSONTokener
-
Consume the next character, and check that it matches a specified
character.
- next(int) - Method in class org.json.JSONTokener
-
Get the next n characters.
- nextCDATA() - Method in class org.json.XMLTokener
-
Get the text in the CDATA block.
- nextClean() - Method in class org.json.JSONTokener
-
Get the next char in the string, skipping whitespace.
- nextContent() - Method in class org.json.XMLTokener
-
Get the next XML outer token, trimming whitespace.
- nextEntity(char) - Method in class org.json.XMLTokener
-
Return the next entity.
- nextMeta() - Method in class org.json.XMLTokener
-
Returns the next XML meta token.
- nextString(char) - Method in class org.json.JSONTokener
-
Return the characters up to the next close quote character.
- nextTo(char) - Method in class org.json.JSONTokener
-
Get the text up but not including the specified character or the
end of line, whichever comes first.
- nextTo(String) - Method in class org.json.JSONTokener
-
Get the text up but not including one of the specified delimiter
characters or the end of line, whichever comes first.
- nextToken() - Method in class org.json.HTTPTokener
-
Get the next token or string.
- nextToken() - Method in class org.json.XMLTokener
-
Get the next XML Token.
- nextValue() - Method in class org.json.JSONTokener
-
Get the next value.
- None - Interface in org.json.zip
-
None is an interface that makes the constant none (short for
negative one or long for -1) available to any class that implements it.
- none - Static variable in interface org.json.zip.None
-
Negative One.
- noSpace(String) - Static method in class org.json.XML
-
Throw an exception if the string contains whitespace.
- nrBits() - Method in class org.json.zip.BitInputStream
-
Get the number of bits that have been read from this BitInputStream.
- nrBits() - Method in class org.json.zip.BitOutputStream
-
Returns the number of bits that have been written to this
bitOutputStream.
- nrBits() - Method in interface org.json.zip.BitReader
-
Returns the number of bits that have been read from this bitreader.
- nrBits() - Method in interface org.json.zip.BitWriter
-
Returns the number of bits that have been written to this bitwriter.
- NULL - Static variable in class org.json.JSONObject
-
It is sometimes more convenient and less ambiguous to have a
NULL
object than to use Java's null
value.
- numberToString(Number) - Static method in class org.json.JSONObject
-
Produce a string from a Number.
- object() - Method in class org.json.JSONWriter
-
Begin appending a new object.
- one() - Method in class org.json.zip.BitOutputStream
-
Write a 1 bit.
- one() - Method in interface org.json.zip.BitWriter
-
Write a 1 bit.
- opt(int) - Method in class org.json.JSONArray
-
Get the optional object value associated with an index.
- opt(String) - Method in class org.json.JSONObject
-
Get an optional value associated with a key.
- optBoolean(int) - Method in class org.json.JSONArray
-
Get the optional boolean value associated with an index.
- optBoolean(int, boolean) - Method in class org.json.JSONArray
-
Get the optional boolean value associated with an index.
- optBoolean(String) - Method in class org.json.JSONObject
-
Get an optional boolean associated with a key.
- optBoolean(String, boolean) - Method in class org.json.JSONObject
-
Get an optional boolean associated with a key.
- optDouble(int) - Method in class org.json.JSONArray
-
Get the optional double value associated with an index.
- optDouble(int, double) - Method in class org.json.JSONArray
-
Get the optional double value associated with an index.
- optDouble(String) - Method in class org.json.JSONObject
-
Get an optional double associated with a key, or NaN if there is no such
key or if its value is not a number.
- optDouble(String, double) - Method in class org.json.JSONObject
-
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.
- optInt(int) - Method in class org.json.JSONArray
-
Get the optional int value associated with an index.
- optInt(int, int) - Method in class org.json.JSONArray
-
Get the optional int value associated with an index.
- optInt(String) - Method in class org.json.JSONObject
-
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.
- optInt(String, int) - Method in class org.json.JSONObject
-
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.
- optJSONArray(int) - Method in class org.json.JSONArray
-
Get the optional JSONArray associated with an index.
- optJSONArray(String) - Method in class org.json.JSONObject
-
Get an optional JSONArray associated with a key.
- optJSONObject(int) - Method in class org.json.JSONArray
-
Get the optional JSONObject associated with an index.
- optJSONObject(String) - Method in class org.json.JSONObject
-
Get an optional JSONObject associated with a key.
- optLong(int) - Method in class org.json.JSONArray
-
Get the optional long value associated with an index.
- optLong(int, long) - Method in class org.json.JSONArray
-
Get the optional long value associated with an index.
- optLong(String) - Method in class org.json.JSONObject
-
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.
- optLong(String, long) - Method in class org.json.JSONObject
-
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.
- optString(int) - Method in class org.json.JSONArray
-
Get the optional string value associated with an index.
- optString(int, String) - Method in class org.json.JSONArray
-
Get the optional string associated with an index.
- optString(String) - Method in class org.json.JSONObject
-
Get an optional string associated with a key.
- optString(String, String) - Method in class org.json.JSONObject
-
Get an optional string associated with a key.
- org.json - package org.json
-
- org.json.zip - package org.json.zip
-
- pad(int) - Method in class org.json.zip.BitInputStream
-
Check that the rest of the block has been padded with zeroes.
- pad(int) - Method in class org.json.zip.BitOutputStream
-
Pad the rest of the block with zeroes and flush. pad(8) flushes the last
unfinished byte.
- pad(int) - Method in interface org.json.zip.BitReader
-
Check that the rest of the block has been padded with zeroes.
- pad(int) - Method in interface org.json.zip.BitWriter
-
Pad the rest of the block with zeros and flush.
- pad(int) - Method in class org.json.zip.Compressor
-
Pad the output to fill an allotment of bits.
- pad(int) - Method in class org.json.zip.Decompressor
-
The pad method skips the bits that padded a stream to fit some
allocation. pad(8) will skip over the remainder of a byte.
- postMortem(PostMortem) - Method in class org.json.zip.Huff
-
Compare two Huffman tables.
- postMortem(PostMortem) - Method in class org.json.zip.JSONzip
-
This method is used for testing the implementation of JSONzip.
- PostMortem - Interface in org.json.zip
-
The PostMortem interface allows for testing the internal state of JSONzip
processors.
- postMortem(PostMortem) - Method in interface org.json.zip.PostMortem
-
Determine if two objects are equivalent.
- probe - Static variable in class org.json.zip.JSONzip
-
The package supports tracing for debugging.
- Property - Class in org.json
-
Converts a Property file data into JSONObject and back.
- Property() - Constructor for class org.json.Property
-
- put(boolean) - Method in class org.json.JSONArray
-
Append a boolean value.
- put(Collection) - Method in class org.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONArray which
is produced from a Collection.
- put(double) - Method in class org.json.JSONArray
-
Append a double value.
- put(int) - Method in class org.json.JSONArray
-
Append an int value.
- put(long) - Method in class org.json.JSONArray
-
Append an long value.
- put(Map) - Method in class org.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject which
is produced from a Map.
- put(Object) - Method in class org.json.JSONArray
-
Append an object value.
- put(int, boolean) - Method in class org.json.JSONArray
-
Put or replace a boolean value in the JSONArray.
- put(int, Collection) - Method in class org.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONArray which
is produced from a Collection.
- put(int, double) - Method in class org.json.JSONArray
-
Put or replace a double value.
- put(int, int) - Method in class org.json.JSONArray
-
Put or replace an int value.
- put(int, long) - Method in class org.json.JSONArray
-
Put or replace a long value.
- put(int, Map) - Method in class org.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject that
is produced from a Map.
- put(int, Object) - Method in class org.json.JSONArray
-
Put or replace an object value in the JSONArray.
- put(String, boolean) - Method in class org.json.JSONObject
-
Put a key/boolean pair in the JSONObject.
- put(String, Collection) - Method in class org.json.JSONObject
-
Put a key/value pair in the JSONObject, where the value will be a
JSONArray which is produced from a Collection.
- put(String, double) - Method in class org.json.JSONObject
-
Put a key/double pair in the JSONObject.
- put(String, int) - Method in class org.json.JSONObject
-
Put a key/int pair in the JSONObject.
- put(String, long) - Method in class org.json.JSONObject
-
Put a key/long pair in the JSONObject.
- put(String, Map) - Method in class org.json.JSONObject
-
Put a key/value pair in the JSONObject, where the value will be a
JSONObject which is produced from a Map.
- put(String, Object) - Method in class org.json.JSONObject
-
Put a key/value pair in the JSONObject.
- putOnce(String, Object) - Method in class org.json.JSONObject
-
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.
- putOpt(String, Object) - Method in class org.json.JSONObject
-
Put a key/value pair in the JSONObject, but only if the key and the value
are both non-null.
- testValidity(Object) - Static method in class org.json.JSONObject
-
Throw an exception if the object is a NaN or infinite number.
- tick(int) - Method in class org.json.zip.Huff
-
Increase by 1 the weight associated with a value.
- tick(int, int) - Method in class org.json.zip.Huff
-
Increase by 1 the weight associated with a range of values.
- toJSONArray(String) - Static method in class org.json.CDL
-
Produce a JSONArray of JSONObjects from a comma delimited text string,
using the first row as a source of names.
- toJSONArray(JSONTokener) - Static method in class org.json.CDL
-
Produce a JSONArray of JSONObjects from a comma delimited text string,
using the first row as a source of names.
- toJSONArray(JSONArray, String) - Static method in class org.json.CDL
-
Produce a JSONArray of JSONObjects from a comma delimited text string
using a supplied JSONArray as the source of element names.
- toJSONArray(JSONArray, JSONTokener) - Static method in class org.json.CDL
-
Produce a JSONArray of JSONObjects from a comma delimited text string
using a supplied JSONArray as the source of element names.
- toJSONArray(String) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a
JSONArray using the JsonML transform.
- toJSONArray(XMLTokener) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a
JSONArray using the JsonML transform.
- toJSONArray(JSONArray) - Method in class org.json.JSONObject
-
Produce a JSONArray containing the values of the members of this
JSONObject.
- toJSONObject(String) - Static method in class org.json.Cookie
-
Convert a cookie specification string into a JSONObject.
- toJSONObject(String) - Static method in class org.json.CookieList
-
Convert a cookie list into a JSONObject.
- toJSONObject(String) - Static method in class org.json.HTTP
-
Convert an HTTP header string into a JSONObject.
- toJSONObject(JSONArray) - Method in class org.json.JSONArray
-
Produce a JSONObject by combining a JSONArray of names with the values of
this JSONArray.
- toJSONObject(XMLTokener) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
- toJSONObject(String) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
- toJSONObject(Properties) - Static method in class org.json.Property
-
Converts a property file object into a JSONObject.
- toJSONObject(String) - Static method in class org.json.XML
-
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject.
- toJSONString() - Method in interface org.json.JSONString
-
The toJSONString
method allows a class to produce its own JSON
serialization.
- toProperties(JSONObject) - Static method in class org.json.Property
-
Converts the JSONObject into a property file object.
- toString(JSONArray) - Static method in class org.json.CDL
-
Produce a comma delimited text from a JSONArray of JSONObjects.
- toString(JSONArray, JSONArray) - Static method in class org.json.CDL
-
Produce a comma delimited text from a JSONArray of JSONObjects using
a provided list of names.
- toString(JSONObject) - Static method in class org.json.Cookie
-
Convert a JSONObject into a cookie specification string.
- toString(JSONObject) - Static method in class org.json.CookieList
-
Convert a JSONObject into a cookie list.
- toString(JSONObject) - Static method in class org.json.HTTP
-
Convert a JSONObject into an HTTP header.
- toString() - Method in class org.json.JSONArray
-
Make a JSON text of this JSONArray.
- toString(int) - Method in class org.json.JSONArray
-
Make a prettyprinted JSON text of this JSONArray.
- toString(JSONArray) - Static method in class org.json.JSONML
-
Reverse the JSONML transformation, making an XML text from a JSONArray.
- toString(JSONObject) - Static method in class org.json.JSONML
-
Reverse the JSONML transformation, making an XML text from a JSONObject.
- toString() - Method in class org.json.JSONObject
-
Make a JSON text of this JSONObject.
- toString(int) - Method in class org.json.JSONObject
-
Make a prettyprinted JSON text of this JSONObject.
- toString() - Method in class org.json.JSONStringer
-
Return the JSON text.
- toString() - Method in class org.json.JSONTokener
-
Make a printable string of this JSONTokener.
- toString() - Method in class org.json.Kim
-
Produce a UTF-16 String from this kim.
- toString(Object) - Static method in class org.json.XML
-
Convert a JSONObject into a well-formed, element-normal XML string.
- toString(Object, String) - Static method in class org.json.XML
-
Convert a JSONObject into a well-formed, element-normal XML string.
- twos - Static variable in class org.json.zip.JSONzip
-
Powers of 2.