A B C D E F G H I J K L M N O P Q R S T V W X

A

accumulate(String, Object) - Method in class net.sf.json.JSONObject
Accumulate values under a key.
array() - Method in class net.sf.json.util.JSONBuilder
Begin appending a new array.
ARRAY - Static variable in interface net.sf.json.util.JSONTypes
 
attributes - Variable in class net.sf.json.util.JSONDynaClass
 

B

back() - Method in class net.sf.json.util.JSONTokener
Back up one character.
BOOLEAN - Static variable in interface net.sf.json.util.JSONTypes
 

C

CDL - Class in net.sf.json.util
This provides static methods to convert comma delimited text into a JSONArray, and to covert a JSONArray into comma delimited text.
CDL() - Constructor for class net.sf.json.util.CDL
 
contains(String, String) - Method in class net.sf.json.util.JSONDynaBean
 

D

dehexchar(char) - Static method in class net.sf.json.util.JSONTokener
Get the hex value of a character (base16).
doubleToString(double) - Static method in class net.sf.json.util.JSONUtils
Produce a string from a double.
DynaBeanToBeanMorpher - Class in net.sf.json.util
Converts a DynaBean into an specific bean.
This Morpher will try to match every property from the target bean's class to the properties of the source DynaBean.
DynaBeanToBeanMorpher(Class, MorpherRegistry) - Constructor for class net.sf.json.util.DynaBeanToBeanMorpher
 
dynaClass - Variable in class net.sf.json.util.JSONDynaBean
 
dynaProperties - Variable in class net.sf.json.util.JSONDynaClass
 
dynaValues - Variable in class net.sf.json.util.JSONDynaBean
 

E

endArray() - Method in class net.sf.json.util.JSONBuilder
End an array.
endObject() - Method in class net.sf.json.util.JSONBuilder
End an object.
equals(Object) - Method in class net.sf.json.JSONFunction
 
equals(Object) - Method in class net.sf.json.JSONNull
A Null object is equal to the null value and to itself.
equals(Object) - Method in class net.sf.json.util.JSONDynaBean
 
equals(Object) - Method in class net.sf.json.util.JSONDynaClass
 

F

FLOAT - Static variable in interface net.sf.json.util.JSONTypes
 
fromArray(Object[]) - Static method in class net.sf.json.JSONArray
Creates a JSONArray from a java array.
The java array can be multidimensional.
fromBean(Object) - Static method in class net.sf.json.JSONObject
Creates a JSONObject from a POJO.
Supports nested maps, POJOs, and arrays/collections.
fromCollection(Collection) - Static method in class net.sf.json.JSONArray
Creates a JSONArray from a Collection.
Its elements can be maps, POJOs, java arrays (primitive & object), collections.
fromDynaBean(DynaBean) - Static method in class net.sf.json.JSONObject
Creates a JSONObject from a DynaBean.
Supports nested maps, POJOs, and arrays/collections.
fromJSONString(JSONString) - Static method in class net.sf.json.JSONArray
Creates a JSONArray from a JSONString.
fromJSONString(JSONString) - Static method in class net.sf.json.JSONObject
Creates a JSONObject from a JSONString.
fromJSONTokener(JSONTokener) - Static method in class net.sf.json.JSONArray
Creates a JSONArray from a JSONTokener.
fromJSONTokener(JSONTokener) - Static method in class net.sf.json.JSONObject
Constructs a JSONObject from a JSONTokener.
fromMap(Map) - Static method in class net.sf.json.JSONObject
Creates a JSONObject from a map.
The key names will become the object's attributes.
fromObject(Object) - Static method in class net.sf.json.JSONArray
Creates a JSONArray.
Inspects the object type to call the correct JSONArray factory method.
fromObject(Object) - Static method in class net.sf.json.JSONObject
Creates a JSONObject.
Inspects the object type to call the correct JSONObject factory method.
fromString(String) - Static method in class net.sf.json.JSONArray
Constructs a JSONArray from a string in JSON format.
fromString(String) - Static method in class net.sf.json.JSONObject
Constructs a JSONObject from a string in JSON format.
FUNCTION - Static variable in interface net.sf.json.util.JSONTypes
 

G

get(int) - Method in class net.sf.json.JSONArray
Get the object value associated with an index.
get(String) - Method in class net.sf.json.JSONObject
Get the value object associated with a key.
get(String) - Method in class net.sf.json.util.JSONDynaBean
 
get(String, int) - Method in class net.sf.json.util.JSONDynaBean
 
get(String, String) - Method in class net.sf.json.util.JSONDynaBean
 
getArrayMode() - Method in class net.sf.json.JSONSerializer
Returns the current array mode conversion
getBoolean(int) - Method in class net.sf.json.JSONArray
Get the boolean value associated with an index.
getBoolean(String) - Method in class net.sf.json.JSONObject
Get the boolean value associated with a key.
getClassMap() - Method in class net.sf.json.JSONSerializer
Returns the current attribute/class Map
getDimensions(JSONArray) - Static method in class net.sf.json.JSONArray
Returns the number of dimensions suited for a java array.
getDouble(int) - Method in class net.sf.json.JSONArray
Get the double value associated with an index.
getDouble(String) - Method in class net.sf.json.JSONObject
Get the double value associated with a key.
getDynaClass() - Method in class net.sf.json.util.JSONDynaBean
 
getDynaProperties() - Method in class net.sf.json.util.JSONDynaClass
 
getDynaProperty(String) - Method in class net.sf.json.util.JSONDynaBean
 
getDynaProperty(String) - Method in class net.sf.json.util.JSONDynaClass
 
getFunctionParams(String) - Static method in class net.sf.json.util.JSONUtils
Returns the params of a function literal.
getGroupIfMatches(String, int) - Method in class net.sf.json.regexp.JdkRegexpMatcher
 
getGroupIfMatches(String, int) - Method in class net.sf.json.regexp.Perl5RegexpMatcher
 
getGroupIfMatches(String, int) - Method in interface net.sf.json.regexp.RegexpMatcher
Returns the specified group if the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.
getInnerComponentType(Class) - Static method in class net.sf.json.util.JSONUtils
 
getInstance() - Static method in class net.sf.json.JSONNull
Returns the singleton instance of JSONNull
getInt(int) - Method in class net.sf.json.JSONArray
Get the int value associated with an index.
getInt(String) - Method in class net.sf.json.JSONObject
Get the int value associated with a key.
getJSONArray(int) - Method in class net.sf.json.JSONArray
Get the JSONArray associated with an index.
getJSONArray(String) - Method in class net.sf.json.JSONObject
Get the JSONArray value associated with a key.
getJsonBeanClass() - Method in class net.sf.json.util.JSONDynaClass
 
getJSONObject(int) - Method in class net.sf.json.JSONArray
Get the JSONObject associated with an index.
getJSONObject(String) - Method in class net.sf.json.JSONObject
Get the JSONObject value associated with a key.
getLong(int) - Method in class net.sf.json.JSONArray
Get the long value associated with an index.
getLong(String) - Method in class net.sf.json.JSONObject
Get the long value associated with a key.
getMatcher(String) - Static method in class net.sf.json.regexp.RegexpUtils
Returns a RegexpMatcher that works in a specific environment.
When in a JVM 1.3.1 it will return a Perl5RegexpMatcher, if the JVM is younger (1.4+) it will return a JdkRegexpMatcher.
getMorpherRegistry() - Static method in class net.sf.json.util.JSONUtils
 
getName() - Method in class net.sf.json.util.JSONDynaClass
 
getParams() - Method in class net.sf.json.JSONFunction
Returns the parameters of this function.
getProperties(JSONObject) - Static method in class net.sf.json.util.JSONUtils
Creates a Map with all the properties of the JSONObject.
getRootClass() - Method in class net.sf.json.JSONSerializer
Returns the current root Class.
getString(int) - Method in class net.sf.json.JSONArray
Get the string associated with an index.
getString(String) - Method in class net.sf.json.JSONObject
Get the string associated with a key.
getText() - Method in class net.sf.json.JSONFunction
Reeturns the text of this function.
getTypeClass(Object) - Static method in class net.sf.json.util.JSONUtils
Returns the JSON type.

H

has(String) - Method in class net.sf.json.JSONObject
Determine if the JSONObject contains a specific key.
hashCode() - Method in class net.sf.json.JSONFunction
 
hashCode() - Method in class net.sf.json.JSONNull
 
hashCode() - Method in class net.sf.json.util.JSONDynaBean
 
hashCode() - Method in class net.sf.json.util.JSONDynaClass
 

I

INTEGER - Static variable in interface net.sf.json.util.JSONTypes
 
isArray() - Method in interface net.sf.json.JSON
 
isArray() - Method in class net.sf.json.JSONArray
 
isArray() - Method in class net.sf.json.JSONNull
 
isArray() - Method in class net.sf.json.JSONObject
 
isArray(Class) - Static method in class net.sf.json.util.JSONUtils
Tests if a Class represents an array or Collection.
isArray(Object) - Static method in class net.sf.json.util.JSONUtils
Tests if obj is an array or Collection.
isBoolean(Class) - Static method in class net.sf.json.util.JSONUtils
Tests if Class represents a Boolean or primitive boolean
isBoolean(Object) - Static method in class net.sf.json.util.JSONUtils
Tests if obj is a Boolean or primitive boolean
isDouble(Class) - Static method in class net.sf.json.util.JSONUtils
Tests if Class represents a primitive double or wrapper.
isDynaAssignable(Class, Class) - Method in class net.sf.json.util.JSONDynaBean
 
isEmpty() - Method in class net.sf.json.JSONArray
 
isEmpty() - Method in class net.sf.json.JSONObject
 
isFunction(Object) - Static method in class net.sf.json.util.JSONUtils
Tests if obj is javaScript function.
Obj must ba a non-null String and match "^function[ ]?\\(.\*\)[ ]?\\{.\*\}$"
isFunctionHeader(Object) - Static method in class net.sf.json.util.JSONUtils
Tests if obj is javaScript function header.
Obj must ba a non-null String and match "^function[ ]?\\(.\*\)$"
isJDK13() - Static method in class net.sf.json.regexp.RegexpUtils
Queries the environment for the supported JDK version.
isNull(Object) - Static method in class net.sf.json.util.JSONUtils
Tests if the obj is a javaScript null.
isNullObject() - Method in class net.sf.json.JSONObject
Returs if this object is a null JSONObject.
isNumber(Class) - Static method in class net.sf.json.util.JSONUtils
Tests if Class represents a primitive number or wrapper.
isNumber(Object) - Static method in class net.sf.json.util.JSONUtils
Tests if obj is a primitive number or wrapper.
isObject(Object) - Static method in class net.sf.json.util.JSONUtils
Tests if obj is not a boolean, number, string or array.
isString(Class) - Static method in class net.sf.json.util.JSONUtils
Tests if Class represents a String or a char
isString(Object) - Static method in class net.sf.json.util.JSONUtils
Tests if obj is a String or a char
iterator() - Method in class net.sf.json.JSONArray
Returns an Iterator for this JSONArray

J

JdkRegexpMatcher - Class in net.sf.json.regexp
JDK 1.4+ RegexpMatcher implementation.
JdkRegexpMatcher(String) - Constructor for class net.sf.json.regexp.JdkRegexpMatcher
 
join(String) - Method in class net.sf.json.JSONArray
Make a string from the contents of this JSONArray.
JSON - Interface in net.sf.json
 
JSONArray - Class in net.sf.json
A JSONArray is an ordered sequence of values.
JSONArray() - Constructor for class net.sf.json.JSONArray
Construct an empty JSONArray.
JSONArray(boolean[]) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from an boolean[].
JSONArray(byte[]) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from an byte[].
JSONArray(char[]) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from an char[].
JSONArray(Collection) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from a Collection.
JSONArray(double[]) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from an double[].
JSONArray(float[]) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from an float[].
JSONArray(int[]) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from an int[].
JSONArray(JSONArray) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from another JSONArray.
This method will return a shallow copy of the input array.
JSONArray(JSONTokener) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from a JSONTokener.
JSONArray(long[]) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from an long[].
JSONArray(Object[]) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from an Object[].
Assumes the object hierarchy is acyclical.
JSONArray(short[]) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from an short[].
JSONArray(String) - Constructor for class net.sf.json.JSONArray
Construct a JSONArray from a source JSON text.
jsonBeanClass - Variable in class net.sf.json.util.JSONDynaClass
 
JSONBuilder - Class in net.sf.json.util
JSONBuilder provides a quick and convenient way of producing JSON text.
JSONBuilder(Writer) - Constructor for class net.sf.json.util.JSONBuilder
Make a fresh JSONBuilder.
JSONDynaBean - Class in net.sf.json.util
 
JSONDynaBean() - Constructor for class net.sf.json.util.JSONDynaBean
 
JSONDynaClass - Class in net.sf.json.util
 
JSONDynaClass(String, Class, Map) - Constructor for class net.sf.json.util.JSONDynaClass
 
JSONException - Exception in net.sf.json
The JSONException is thrown by the JSON.org classes then things are amiss.
JSONException() - Constructor for exception net.sf.json.JSONException
 
JSONException(String) - Constructor for exception net.sf.json.JSONException
 
JSONException(String, Throwable) - Constructor for exception net.sf.json.JSONException
 
JSONException(Throwable) - Constructor for exception net.sf.json.JSONException
 
JSONFunction - Class in net.sf.json
JSONFunction represents a javaScript function's text.
JSONFunction(String) - Constructor for class net.sf.json.JSONFunction
Constructs a JSONFunction with no parameters.
JSONFunction(String[], String) - Constructor for class net.sf.json.JSONFunction
Constructs a JSONFunction with parameters.
JSONNull - Class in net.sf.json
JSONNull is equivalent to the value that JavaScript calls null, whilst Java's null is equivalent to the value that JavaScript calls undefined.
JSONObject - Class in net.sf.json
A JSONObject is an unordered collection of name/value pairs.
JSONObject() - Constructor for class net.sf.json.JSONObject
Construct an empty JSONObject.
JSONObject(boolean) - Constructor for class net.sf.json.JSONObject
Creates a JSONObject that is null.
JSONObject(DynaBean) - Constructor for class net.sf.json.JSONObject
Construct a JSONObject from a DynaBean.
Assumes the object hierarchy is acyclical.
JSONObject(JSONObject) - Constructor for class net.sf.json.JSONObject
Construct a JSONObject from a subset of another JSONObject.
JSONObject(JSONObject, String[]) - Constructor for class net.sf.json.JSONObject
Construct a JSONObject from a subset of another JSONObject.
JSONObject(JSONTokener) - Constructor for class net.sf.json.JSONObject
Construct a JSONObject from a JSONTokener.
JSONObject(Map) - Constructor for class net.sf.json.JSONObject
Construct a JSONObject from a Map.
Assumes the object hierarchy is acyclical.
JSONObject(Object, String[]) - Constructor for class net.sf.json.JSONObject
Construct a JSONObject from an Object, using reflection to find the public members.
JSONObject(String) - Constructor for class net.sf.json.JSONObject
Construct a JSONObject from a string.
JSONSerializer - Class in net.sf.json
Transforms java objects into JSON and back.
Transformation from java to JSON is pretty straightforward, but the other way around needs certain configuration, otherwise the java objects produced will be DynaBeans and Lists, because the JSON notation does not carry any information on java classes.
Use the provided property setters before calling toJava().
JSONSerializer() - Constructor for class net.sf.json.JSONSerializer
Default constructor
JSONSerializer(Class, Map, int) - Constructor for class net.sf.json.JSONSerializer
Constructs a new JSONSerializer with specific values for conversion.
JSONString - Interface in net.sf.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 net.sf.json.util
JSONStringer provides a quick and convenient way of producing JSON text.
JSONStringer() - Constructor for class net.sf.json.util.JSONStringer
Make a fresh JSONStringer.
JSONTokener - Class in net.sf.json.util
A JSONTokener takes a source string and extracts characters and tokens from it.
JSONTokener(String) - Constructor for class net.sf.json.util.JSONTokener
Construct a JSONTokener from a string.
JSONTypes - Interface in net.sf.json.util
 
JSONUtils - Class in net.sf.json.util
Provides useful methods on java objects.

K

key(String) - Method in class net.sf.json.util.JSONBuilder
Append a key.
keys() - Method in class net.sf.json.JSONObject
Get an enumeration of the keys of the JSONObject.

L

length() - Method in class net.sf.json.JSONArray
Get the number of elements in the JSONArray, included nulls.
length() - Method in class net.sf.json.JSONObject
Get the number of keys stored in the JSONObject.
length() - Method in class net.sf.json.util.JSONTokener
 

M

matches(String) - Method in class net.sf.json.regexp.JdkRegexpMatcher
 
matches(String) - Method in class net.sf.json.regexp.Perl5RegexpMatcher
 
matches(String) - Method in interface net.sf.json.regexp.RegexpMatcher
Returns true is the string macthes the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.
matches(String) - Method in class net.sf.json.util.JSONTokener
 
mayBeJSON(String) - Static method in class net.sf.json.util.JSONUtils
 
mode - Variable in class net.sf.json.util.JSONBuilder
The current mode.
MODE_LIST - Static variable in class net.sf.json.JSONSerializer
 
MODE_OBJECT_ARRAY - Static variable in class net.sf.json.JSONSerializer
 
more() - Method in class net.sf.json.util.JSONTokener
Determine if the source string still contains characters that next() can consume.
morph(Object) - Method in class net.sf.json.util.DynaBeanToBeanMorpher
 
morphsTo() - Method in class net.sf.json.util.DynaBeanToBeanMorpher
 

N

name - Variable in class net.sf.json.util.JSONDynaClass
 
names() - Method in class net.sf.json.JSONObject
Produce a JSONArray containing the names of the elements of this JSONObject.
net.sf.json - package net.sf.json
the core of the library
net.sf.json.regexp - package net.sf.json.regexp
Regexp utilities
net.sf.json.util - package net.sf.json.util
Miscelaneous utilities
net.sf.json.xml - package net.sf.json.xml
Utilities for trasforming JSON to XML and back.
newDynaBean(JSONObject) - Static method in class net.sf.json.util.JSONUtils
 
newInstance() - Method in class net.sf.json.util.JSONDynaClass
 
next() - Method in class net.sf.json.util.JSONTokener
Get the next character in the source string.
next(char) - Method in class net.sf.json.util.JSONTokener
Consume the next character, and check that it matches a specified character.
next(int) - Method in class net.sf.json.util.JSONTokener
Get the next n characters.
nextClean() - Method in class net.sf.json.util.JSONTokener
Get the next char in the string, skipping whitespace and comments (slashslash, slashstar, and hash).
nextString(char) - Method in class net.sf.json.util.JSONTokener
Return the characters up to the next close quote character.
nextTo(char) - Method in class net.sf.json.util.JSONTokener
Get the text up but not including the specified character or the end of line, whichever comes first.
nextTo(String) - Method in class net.sf.json.util.JSONTokener
Get the text up but not including one of the specified delimeter characters or the end of line, whichever comes first.
nextValue() - Method in class net.sf.json.util.JSONTokener
Get the next value.
NUMBER - Static variable in interface net.sf.json.util.JSONTypes
 
numberToString(Number) - Static method in class net.sf.json.util.JSONUtils
Produce a string from a Number.

O

object() - Method in class net.sf.json.util.JSONBuilder
Begin appending a new object.
OBJECT - Static variable in interface net.sf.json.util.JSONTypes
 
opt(int) - Method in class net.sf.json.JSONArray
Get the optional object value associated with an index.
opt(String) - Method in class net.sf.json.JSONObject
Get an optional value associated with a key.
optBoolean(int) - Method in class net.sf.json.JSONArray
Get the optional boolean value associated with an index.
optBoolean(int, boolean) - Method in class net.sf.json.JSONArray
Get the optional boolean value associated with an index.
optBoolean(String) - Method in class net.sf.json.JSONObject
Get an optional boolean associated with a key.
optBoolean(String, boolean) - Method in class net.sf.json.JSONObject
Get an optional boolean associated with a key.
optDouble(int) - Method in class net.sf.json.JSONArray
Get the optional double value associated with an index.
optDouble(int, double) - Method in class net.sf.json.JSONArray
Get the optional double value associated with an index.
optDouble(String) - Method in class net.sf.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 net.sf.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 net.sf.json.JSONArray
Get the optional int value associated with an index.
optInt(int, int) - Method in class net.sf.json.JSONArray
Get the optional int value associated with an index.
optInt(String) - Method in class net.sf.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 net.sf.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 net.sf.json.JSONArray
Get the optional JSONArray associated with an index.
optJSONArray(String) - Method in class net.sf.json.JSONObject
Get an optional JSONArray associated with a key.
optJSONObject(int) - Method in class net.sf.json.JSONArray
Get the optional JSONObject associated with an index.
optJSONObject(String) - Method in class net.sf.json.JSONObject
Get an optional JSONObject associated with a key.
optLong(int) - Method in class net.sf.json.JSONArray
Get the optional long value associated with an index.
optLong(int, long) - Method in class net.sf.json.JSONArray
Get the optional long value associated with an index.
optLong(String) - Method in class net.sf.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 net.sf.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 net.sf.json.JSONArray
Get the optional string value associated with an index.
optString(int, String) - Method in class net.sf.json.JSONArray
Get the optional string associated with an index.
optString(String) - Method in class net.sf.json.JSONObject
Get an optional string associated with a key.
optString(String, String) - Method in class net.sf.json.JSONObject
Get an optional string associated with a key.

P

parse(JSONTokener) - Static method in class net.sf.json.JSONFunction
Constructs a JSONFunction from a text representation
parse(String) - Static method in class net.sf.json.JSONFunction
Constructs a JSONFunction from a text representation
Perl5RegexpMatcher - Class in net.sf.json.regexp
Jakarta-oro RegexpMatcher Implementation.
Runs on older JVMs (1.3.1).
Perl5RegexpMatcher(String) - Constructor for class net.sf.json.regexp.Perl5RegexpMatcher
 
properties - Variable in class net.sf.json.util.JSONDynaClass
 
put(boolean) - Method in class net.sf.json.JSONArray
Append a boolean value.
put(Collection) - Method in class net.sf.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 net.sf.json.JSONArray
Append a double value.
put(int) - Method in class net.sf.json.JSONArray
Append an int value.
put(int, boolean) - Method in class net.sf.json.JSONArray
Put or replace a boolean value in the JSONArray.
put(int, Collection) - Method in class net.sf.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 net.sf.json.JSONArray
Put or replace a double value.
put(int, int) - Method in class net.sf.json.JSONArray
Put or replace an int value.
put(int, long) - Method in class net.sf.json.JSONArray
Put or replace a long value.
put(int, Map) - Method in class net.sf.json.JSONArray
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
put(int, Object) - Method in class net.sf.json.JSONArray
Put or replace an object value in the JSONArray.
put(int, String) - Method in class net.sf.json.JSONArray
Put or replace a String value in the JSONArray.
put(JSON) - Method in class net.sf.json.JSONArray
Append an JSON value.
put(JSONString) - Method in class net.sf.json.JSONArray
Append an JSONString value.
put(long) - Method in class net.sf.json.JSONArray
Append an long value.
put(Map) - Method in class net.sf.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 net.sf.json.JSONArray
Append an object value.
put(String) - Method in class net.sf.json.JSONArray
Append a String value.
put(String, boolean) - Method in class net.sf.json.JSONObject
Put a key/boolean pair in the JSONObject.
put(String, Collection) - Method in class net.sf.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 net.sf.json.JSONObject
Put a key/double pair in the JSONObject.
put(String, int) - Method in class net.sf.json.JSONObject
Put a key/int pair in the JSONObject.
put(String, long) - Method in class net.sf.json.JSONObject
Put a key/long pair in the JSONObject.
put(String, Map) - Method in class net.sf.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 net.sf.json.JSONObject
Put a key/value pair in the JSONObject.
putOpt(String, Object) - Method in class net.sf.json.JSONObject
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.

Q

quote(String) - Static method in class net.sf.json.util.JSONUtils
Produce a string in double quotes with backslash sequences in all the right places.

R

readArray(String) - Static method in class net.sf.json.xml.XMLSerializer
Creates a JSONArray from a XML string.
readObject(String) - Static method in class net.sf.json.xml.XMLSerializer
Creates a JSONObject from a XML string.
RegexpMatcher - Interface in net.sf.json.regexp
Abstraction for regexp handling.
RegexpUtils - Class in net.sf.json.regexp
Convenience utility for working withRegexpMatcher.
remove(String) - Method in class net.sf.json.JSONObject
Remove a name and its value, if present.
remove(String, String) - Method in class net.sf.json.util.JSONDynaBean
 
reset() - Method in class net.sf.json.JSONSerializer
Resets this serializer to default values.
rootClass = null
classMap = null
arrayMode = MODE_LIST
reset() - Method in class net.sf.json.util.JSONTokener
 
rowToJSONArray(JSONTokener) - Static method in class net.sf.json.util.CDL
Produce a JSONArray of strings from a row of comma delimited values.
rowToJSONObject(JSONArray, JSONTokener) - Static method in class net.sf.json.util.CDL
Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements.
rowToString(JSONArray) - Static method in class net.sf.json.util.CDL
Produce a comma delimited text row from a JSONArray.

S

set(String, Object) - Method in class net.sf.json.JSONObject
Put a key/value pair in the JSONObject.
set(String, int, Object) - Method in class net.sf.json.util.JSONDynaBean
 
set(String, Object) - Method in class net.sf.json.util.JSONDynaBean
 
set(String, String, Object) - Method in class net.sf.json.util.JSONDynaBean
 
setArrayMode(int) - Method in class net.sf.json.JSONSerializer
Sets the current array mode for conversion.
If the value is not MODE_LIST neither MODE_OBJECT_ARRAY, then MODE_LIST will be used.
setClassMap(Map) - Method in class net.sf.json.JSONSerializer
Sets the current attribute/Class Map
setDynamicFormClass(JSONDynaClass) - Method in class net.sf.json.util.JSONDynaBean
 
setRootClass(Class) - Method in class net.sf.json.JSONSerializer
Sets the current root Class
skipPast(String) - Method in class net.sf.json.util.JSONTokener
Skip characters until past the requested string.
skipTo(char) - Method in class net.sf.json.util.JSONTokener
Skip characters until the next character is the requested character.
STRING - Static variable in interface net.sf.json.util.JSONTypes
 
supports(Class) - Method in class net.sf.json.util.DynaBeanToBeanMorpher
 
syntaxError(String) - Method in class net.sf.json.util.JSONTokener
Make a JSONException to signal a syntax error.

T

testValidity(Object) - Static method in class net.sf.json.util.JSONUtils
Throw an exception if the object is an NaN or infinite number.
toArray(JSONArray) - Static method in class net.sf.json.JSONArray
Creates a java array from a JSONArray.
toArray(JSONArray, Class) - Static method in class net.sf.json.JSONArray
Creates a java array from a JSONArray.
toArray(JSONArray, Class, Map) - Static method in class net.sf.json.JSONArray
Creates a java array from a JSONArray.
Any attribute is a JSONObject and matches a key in the classMap, it will be converted to that target class.
The classMap has the following conventions: Every key must be an String. Every value must be a Class. A key may be a regular expression.
toArray() - Method in class net.sf.json.JSONArray
Produce an Object[] with the contents of this JSONArray.
toBean(JSONObject) - Static method in class net.sf.json.JSONObject
Creates a JSONDynaBean from a JSONObject.
toBean(JSONObject, Class) - Static method in class net.sf.json.JSONObject
Creates a bean from a JSONObject, with a specific target class.
toBean(JSONObject, Class, Map) - Static method in class net.sf.json.JSONObject
Creates a bean from a JSONObject, with a specific target class.
If beanClass is null, this method will return a graph of DynaBeans.
toJava(JSON) - Method in class net.sf.json.JSONSerializer
Transform a JSON value to a java object.
Depending on the configured values for conversion this will return a DynaBean, a bean, a List, or and array.
toJSON(Object) - Static method in class net.sf.json.JSONSerializer
Creates a JSONObject, JSONArray or a JSONNull from object.
toJSONArray(JSONArray) - Method in class net.sf.json.JSONObject
Produce a JSONArray containing the values of the members of this JSONObject.
toJSONArray(String) - Static method in class net.sf.json.util.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 net.sf.json.util.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 net.sf.json.util.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 net.sf.json.util.CDL
Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.
toJSONObject(JSONArray) - Method in class net.sf.json.JSONArray
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.
toJSONString() - Method in interface net.sf.json.JSONString
The toJSONString method allows a class to produce its own JSON serialization.
toList(JSONArray) - Static method in class net.sf.json.JSONArray
Creates a List from a JSONArray.
toList(JSONArray, Class) - Static method in class net.sf.json.JSONArray
Creates a List from a JSONArray.
toList(JSONArray, Class, Map) - Static method in class net.sf.json.JSONArray
Creates a List from a JSONArray.
Any attribute is a JSONObject and matches a key in the classMap, it will be converted to that target class.
The classMap has the following conventions: Every key must be an String. Every value must be a Class. A key may be a regular expression.
toString() - Method in class net.sf.json.JSONArray
Make a JSON text of this JSONArray.
toString(int) - Method in class net.sf.json.JSONArray
Make a prettyprinted JSON text of this JSONArray.
toString(int, int) - Method in class net.sf.json.JSONArray
Make a prettyprinted JSON text of this JSONArray.
toString() - Method in class net.sf.json.JSONFunction
Returns the string representation of this function.
toString() - Method in class net.sf.json.JSONNull
Get the "null" string value.
toString() - Method in class net.sf.json.JSONObject
Make a JSON text of this JSONObject.
toString(int) - Method in class net.sf.json.JSONObject
Make a prettyprinted JSON text of this JSONObject.
toString(int, int) - Method in class net.sf.json.JSONObject
Make a prettyprinted JSON text of this JSONObject.
toString(JSONArray) - Static method in class net.sf.json.util.CDL
Produce a comma delimited text from a JSONArray of JSONObjects.
toString(JSONArray, JSONArray) - Static method in class net.sf.json.util.CDL
Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.
toString() - Method in class net.sf.json.util.JSONDynaBean
 
toString() - Method in class net.sf.json.util.JSONDynaClass
 
toString() - Method in class net.sf.json.util.JSONStringer
Return the JSON text.
toString() - Method in class net.sf.json.util.JSONTokener
Make a printable string of this JSONTokener.
transformNumber(Number) - Static method in class net.sf.json.util.JSONUtils
Transforms a Number into a valid javascript number.
Float gets promoted to Double.
Byte and Short get promoted to Integer.
Long gets downgraded to Integer if possible.
type - Variable in class net.sf.json.util.JSONDynaClass
 

V

value(boolean) - Method in class net.sf.json.util.JSONBuilder
Append either the value true or the value false.
value(double) - Method in class net.sf.json.util.JSONBuilder
Append a double value.
value(long) - Method in class net.sf.json.util.JSONBuilder
Append a long value.
value(Object) - Method in class net.sf.json.util.JSONBuilder
Append an object value.
valueToString(Object) - Static method in class net.sf.json.util.JSONUtils
Make a JSON text of an Object value.
valueToString(Object, int, int) - Static method in class net.sf.json.util.JSONUtils
Make a prettyprinted JSON text of an object value.

W

write(Writer) - Method in class net.sf.json.JSONArray
Write the contents of the JSONArray as JSON text to a writer.
write(Writer) - Method in class net.sf.json.JSONObject
Write the contents of the JSONObject as JSON text to a writer.
write(JSONArray) - Static method in class net.sf.json.xml.XMLSerializer
Writes a JSONArray into a XML string.
write(JSONObject) - Static method in class net.sf.json.xml.XMLSerializer
Writes a JSONObject into a XML string.
writer - Variable in class net.sf.json.util.JSONBuilder
The writer that will receive the output.

X

XMLSerializer - Class in net.sf.json.xml
Utility class for transforming JSON to XML an back.
When transforming JSONObject and JSONArray instances to XML, this class will add hints for converting back to JSON.
Examples:
XMLSerializer() - Constructor for class net.sf.json.xml.XMLSerializer
 

A B C D E F G H I J K L M N O P Q R S T V W X

Copyright © 2006 null. All Rights Reserved.