A B C D E G H I J L O P R S T U 

A

add(Object, Object) - Method in class org.kopitubruk.util.json.JsonObject
Add a property to the property list.
addDateParseFormat(DateFormat) - Method in class org.kopitubruk.util.json.JSONConfig
Add a date parsing format to the list of parsing formats.
addDateParseFormat(String) - Method in class org.kopitubruk.util.json.JSONConfig
Add a date parsing format to the list of parsing formats.
addDateParseFormat(String) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Add a date parsing format to the list of date parsing formats used by the parser when encodeDatesAsStrings or encodeDatesAsObjects is true.
addDateParseFormat(DateFormat) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Add a date parsing format to the list of parsing formats used by the parser when encodeDatesAsStrings or encodeDatesAsObjects is true.
addDateParseFormat(String) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Add a date parsing format to the list of date parsing formats used by the parser when encodeDatesAsStrings or encodeDatesAsObjects is true.
addDateParseFormats(Collection<? extends DateFormat>) - Method in class org.kopitubruk.util.json.JSONConfig
Add a collection of date parsing formats to the list of date parsing formats.
addDateParseFormats(Collection<? extends DateFormat>) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Add a collection of date parsing format to the list of date parsing formats used by the parser when encodeDatesAsStrings or encodeDatesAsObjects is true.
addNumberFormat(Class<? extends Number>, NumberFormat) - Method in class org.kopitubruk.util.json.JSONConfig
Add a number format for a particular type that extends Number.
addNumberFormat(Number, NumberFormat) - Method in class org.kopitubruk.util.json.JSONConfig
Add a number format for a particular type that extends Number.
addNumberFormat(Class<? extends Number>, NumberFormat) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Add a default number format for a particular type that extends Number.
addNumberFormat(Number, NumberFormat) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Add a default number format for a particular type that extends Number.
addNumberFormats(Map<Class<? extends Number>, NumberFormat>) - Method in class org.kopitubruk.util.json.JSONConfig
Add a map of number formats to the current map of number formats.
addNumberFormats(Map<Class<? extends Number>, NumberFormat>) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Add a map of number formats to the current map of number formats.
addReflectClass(Object) - Method in class org.kopitubruk.util.json.JSONConfig
Add the class of the given object to the set of classes that automatically get reflected.
addReflectClass(Object) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Add the class of the given object to the set of classes that automatically get reflected.
addReflectClassByName(String) - Method in class org.kopitubruk.util.json.JSONConfig
Add the given class to the set of classes to be reflected.
addReflectClassByName(String) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Add the given class to the set of classes to be reflected.
addReflectClassByName(String) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Add the given class to the set of classes to be reflected.
addReflectClasses(Collection<?>) - Method in class org.kopitubruk.util.json.JSONConfig
Add the classes of all of the given objests to the list of classes that automatically get reflected.
addReflectClasses(Collection<?>) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Add the classes of all of the given objects to the list of classes that automatically get reflected.

B

BadPropertyNameException - Exception in org.kopitubruk.util.json
Exception for handling bad Javascript property identifiers for JSONUtil.

C

checkValidJavascriptPropertyName(String, JSONConfig) - Static method in class org.kopitubruk.util.json.JSONUtil
Checks if the input string represents a valid Javascript property name.
checkValidJavascriptPropertyName(String) - Static method in class org.kopitubruk.util.json.JSONUtil
Checks if the input string represents a valid Javascript property name using default identifier options.
clear() - Method in class org.kopitubruk.util.json.JsonObject
Clear the property list.
clearDateGenFormat() - Method in class org.kopitubruk.util.json.JSONConfig
Clear date generation format.
clearDateGenFormat() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Clear date generation format.
clearDateGenFormat() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Clear date generation format.
clearDateParseFormats() - Method in class org.kopitubruk.util.json.JSONConfig
Clear any date parse formats.
clearDateParseFormats() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Clear any date parse formats from the list of formats used by the parser when encodeDatesAsStrings or encodeDatesAsObjects is true.
clearDateParseFormats() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Clear any date parse formats from the list of formats used by the parser when encodeDatesAsStrings or encodeDatesAsObjects is true.
clearMBean() - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
When this package is used by a webapp, and you have an MBean server in your environment, then you should create a ServletContextListener and call this in its ServletContextListener.contextDestroyed(ServletContextEvent) method to remove the MBean when the webapp is unloaded or reloaded.
clearNumberFormats() - Method in class org.kopitubruk.util.json.JSONConfig
Clear all number formats.
clearNumberFormats() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Clear any default number formats.
clearNumberFormats() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Clear any default number formats.
clearReflectClasses() - Method in class org.kopitubruk.util.json.JSONConfig
Clear all reflection classes, disabling all automatic reflection.
clearReflectClasses() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Clear all reflection classes, disabling all default automatic selective reflection.
clearReflectClasses() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Clear all reflection classes, disabling all default automatic reflection.
clearReflectionCache() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Clear the reflection cache, if any.
clearReflectionCache() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Clear the reflection cache.
clone() - Method in class org.kopitubruk.util.json.IndentPadding
 
clone() - Method in class org.kopitubruk.util.json.JSONConfig
Return a clone of this object.
clone() - Method in class org.kopitubruk.util.json.JSONReflectedClass
 

D

DataStructureLoopException - Exception in org.kopitubruk.util.json
Exception for handling loops in the data structures sent to various toJSON methods.
decrementLevel() - Method in class org.kopitubruk.util.json.IndentPadding
Decrement the level of indent.
DISCARD - Static variable in class org.kopitubruk.util.json.JSONConfig
Discard bad data.
DuplicatePropertyNameException - Exception in org.kopitubruk.util.json
Exception thrown when a map produces duplicate property names in the same object, which is extremely unlikely but could happen if the map has two keys which are not equal but produce the same result from their toString() method.

E

equals(Object) - Method in class org.kopitubruk.util.json.JSONReflectedClass
 
ESCAPE - Static variable in class org.kopitubruk.util.json.JSONConfig
Escape bad data.
EXCEPTION - Static variable in class org.kopitubruk.util.json.JSONConfig
Throw an exception on bad data.

G

getClassName(Object) - Method in exception org.kopitubruk.util.json.JSONException
Get the name of the class of the object.
getCodePoint() - Method in exception org.kopitubruk.util.json.UndefinedCodePointException
Get the code point that caused this exception.
getFieldAliases() - Method in class org.kopitubruk.util.json.JSONReflectedClass
Get the field aliases map.
getFieldNames() - Method in class org.kopitubruk.util.json.JSONReflectedClass
Get a copy of the set of field names to reflect.
getIndent() - Method in class org.kopitubruk.util.json.IndentPadding
Get the spacing for one indent level.
getIndentPadding() - Method in class org.kopitubruk.util.json.JSONConfig
Get the padding object.
getIndentPadding() - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default indent padding object.
getInstance() - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Return the JSONConfigDefaults singleton instance.
getJavascriptReservedWords() - Static method in class org.kopitubruk.util.json.JSONUtil
Get the list of reserved words.
getJSONConfig() - Method in class org.kopitubruk.util.json.JsonObject
Get the JSONConfig or null if there isn't one.
getLocale() - Method in class org.kopitubruk.util.json.JSONConfig
Get the locale for this instance.
getLocale() - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default locale for new JSONConfig objects.
getLocaleLanguageTag() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the result of Locale.toLanguageTag() from the current default locale.
getLocaleLanguageTag() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default locale for new JSONConfig objects in string form.
getLocalizedMessage() - Method in exception org.kopitubruk.util.json.JSONException
 
getMessage() - Method in exception org.kopitubruk.util.json.JSONException
 
getNewLine() - Method in class org.kopitubruk.util.json.IndentPadding
Get the string to use for a new line (default \n)
getNumberFormat(Class<? extends Number>) - Method in class org.kopitubruk.util.json.JSONConfig
Get the number format for the given class.
getNumberFormat(Number) - Method in class org.kopitubruk.util.json.JSONConfig
Get the number format for the class of the given numeric type.
getNumberFormat(Class<? extends Number>) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the number format for the given class.
getNumberFormat(Number) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the number format for the class of the given numeric type.
getObjClass() - Method in class org.kopitubruk.util.json.JSONReflectedClass
Get the class being reflected.
getPadding() - Method in class org.kopitubruk.util.json.IndentPadding
Get the padding for the current indent level.
getPosition() - Method in exception org.kopitubruk.util.json.UndefinedCodePointException
Get the position within the string of the code point that caused this exception.
getPosition() - Method in exception org.kopitubruk.util.json.UnmatchedSurrogateException
Get the position within the string of the unmatched surrogate that caused this exception.
getReflectedClass(Object) - Method in class org.kopitubruk.util.json.JSONConfig
Get the JSONReflectedClass for the given object if it is stored.
getReflectedClass(Object) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the JSONReflectedClass for the given object if it is stored.
getReflectionPrivacy() - Method in class org.kopitubruk.util.json.JSONConfig
Get the reflection privacy level.
getReflectionPrivacy() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the reflection privacy level.
getReflectionPrivacy() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the reflection privacy level.
getStrValue() - Method in exception org.kopitubruk.util.json.UndefinedCodePointException
Get the string value that contained this undefined code point.
getStrValue() - Method in exception org.kopitubruk.util.json.UnmatchedSurrogateException
Get the string value that contained this unmatched surrogate.
getUndefinedCodePointPolicy() - Method in class org.kopitubruk.util.json.JSONConfig
Get the policy for undefined code points.
getUndefinedCodePointPolicy() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default policy for undefined code points.
getUndefinedCodePointPolicy() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default policy for undefined code points.
getUnmatchedSurrogate() - Method in exception org.kopitubruk.util.json.UnmatchedSurrogateException
Get the unmatched surrogate that caused this exception.
getUnmatchedSurrogatePolicy() - Method in class org.kopitubruk.util.json.JSONConfig
Get the policy for unmatched surrogates.
getUnmatchedSurrogatePolicy() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default policy for unmatched surrogates.
getUnmatchedSurrogatePolicy() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default policy for unmatched surrogates.

H

hashCode() - Method in class org.kopitubruk.util.json.JSONReflectedClass
 

I

incrementLevel() - Method in class org.kopitubruk.util.json.IndentPadding
Increment the level of indent.
IndentPadding - Class in org.kopitubruk.util.json
This class provides a way to do indented formatting of the output to make it easier to read for debugging.
IndentPadding() - Constructor for class org.kopitubruk.util.json.IndentPadding
Create an indent padding object using four spaces and a standard newline.
IndentPadding(String, String) - Constructor for class org.kopitubruk.util.json.IndentPadding
Create an indent padding object with the given indent and newLine strings.
isAllowReservedWordsInIdentifiers() - Method in class org.kopitubruk.util.json.JSONConfig
Get the allowReservedWordsInIdentifiers policy.
isAllowReservedWordsInIdentifiers() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default for allowing reserved words in identifiers.
isAllowReservedWordsInIdentifiers() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default for allowing reserved words in identifiers.
isCacheReflectionData() - Method in class org.kopitubruk.util.json.JSONConfig
Get the the cacheReflectionData policy.
isCacheReflectionData() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default cacheReflectionData policy.
isCacheReflectionData() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the the cacheReflectionData policy.
isDetectDataStructureLoops() - Method in class org.kopitubruk.util.json.JSONConfig
Return true if data structure loops will be detected.
isDetectDataStructureLoops() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default detect data structure loops policy.
isDetectDataStructureLoops() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default detect data structure loops policy.
isEncodeDatesAsObjects() - Method in class org.kopitubruk.util.json.JSONConfig
Get the encode dates policy.
isEncodeDatesAsObjects() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the encode dates as objects policy.
isEncodeDatesAsObjects() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the encode dates as objects policy.
isEncodeDatesAsStrings() - Method in class org.kopitubruk.util.json.JSONConfig
Get the encode dates as strings policy.
isEncodeDatesAsStrings() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the encode dates as strings policy.
isEncodeDatesAsStrings() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the encode dates as strings policy.
isEncodeNumericStringsAsNumbers() - Method in class org.kopitubruk.util.json.JSONConfig
If true, then strings will be checked for number patterns and if they look like numbers, then they won't be quoted.
isEncodeNumericStringsAsNumbers() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default encode numeric strings as numbers policy.
isEncodeNumericStringsAsNumbers() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default encode numeric strings as numbers policy.
isEscapeBadIdentifierCodePoints() - Method in class org.kopitubruk.util.json.JSONConfig
Find out if bad identifier code points will be escaped.
isEscapeBadIdentifierCodePoints() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default escape bad identifier code points policy.
isEscapeBadIdentifierCodePoints() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default escape bad identifier code points policy.
isEscapeNonAscii() - Method in class org.kopitubruk.util.json.JSONConfig
Check if non-ascii characters are to be encoded as Unicode escapes.
isEscapeNonAscii() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default escape non-ASCII policy.
isEscapeNonAscii() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default escape non-ASCII policy.
isEscapeSurrogates() - Method in class org.kopitubruk.util.json.JSONConfig
Return the escape surrogates policy.
isEscapeSurrogates() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default escape surrogates policy.
isEscapeSurrogates() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default escape surrogates policy.
isFastStrings() - Method in class org.kopitubruk.util.json.JSONConfig
Get the fastStrings policy.
isFastStrings() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the fastStrings policy.
isFastStrings() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the fastStrings policy.
isFormatDates() - Method in class org.kopitubruk.util.json.JSONConfig
Find out if special date formatting is enabled.
isFullJSONIdentifierCodePoints() - Method in class org.kopitubruk.util.json.JSONConfig
Get the full JSON identifier code points policy.
isFullJSONIdentifierCodePoints() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the full JSON identifier code points policy.
isFullJSONIdentifierCodePoints() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the full JSON identifier code points policy.
isPassThroughEscapes() - Method in class org.kopitubruk.util.json.JSONConfig
Get the pass through escapes policy.
isPassThroughEscapes() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the pass through escapes policy.
isPassThroughEscapes() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the pass through escapes policy.
isPreciseNumbers() - Method in class org.kopitubruk.util.json.JSONConfig
Get the preciseNumbers policy.
isPreciseNumbers() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default preciseIntegers policy.
isPreciseNumbers() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the preciseFloatingPoint policy.
isQuoteIdentifier() - Method in class org.kopitubruk.util.json.JSONConfig
Find out what the identifier quote policy is.
isQuoteIdentifier() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default quote identifier policy.
isQuoteIdentifier() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default quote identifier policy.
isReflectClass(Object) - Method in class org.kopitubruk.util.json.JSONConfig
Return true if the given class is in the set of classes being automatically reflected.
isReflectClass(Object) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Return true if the given class is in the set of classes being automatically reflected.
isReflectUnknownObjects() - Method in class org.kopitubruk.util.json.JSONConfig
Get the reflection of unknown objects policy.
isReflectUnknownObjects() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default reflection of unknown objects policy.
isReflectUnknownObjects() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the reflection of unknown objects policy.
isReservedWord(String) - Static method in class org.kopitubruk.util.json.JSONUtil
Check if the given string is a reserved word.
isSmallNumbers() - Method in class org.kopitubruk.util.json.JSONConfig
Get the smallNumbers policy.
isSmallNumbers() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default smallNumbers policy.
isSmallNumbers() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the smallNumbers policy.
isUnEscapeWherePossible() - Method in class org.kopitubruk.util.json.JSONConfig
The unEscape policy.
isUnEscapeWherePossible() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default unEscape policy.
isUnEscapeWherePossible() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
The default unEscape policy.
isUseECMA6() - Method in class org.kopitubruk.util.json.JSONConfig
Find out if ECMAScript 6 code point escapes are enabled.
isUseECMA6() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default escape ECMAScript 6 code points policy.
isUseECMA6() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default escape ECMAScript 6 code points policy.
isUsePrimitiveArrays() - Method in class org.kopitubruk.util.json.JSONConfig
The primitive arrays policy.
isUsePrimitiveArrays() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
The default primitive arrays policy.
isUsePrimitiveArrays() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
The primitive arrays policy.
isValidatePropertyNames() - Method in class org.kopitubruk.util.json.JSONConfig
Check if property names will be validated.
isValidatePropertyNames() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get the default validate property names policy.
isValidatePropertyNames() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default validate property names policy.
isValidJavascriptPropertyName(String, JSONConfig) - Static method in class org.kopitubruk.util.json.JSONUtil
Return true if the input string is a valid Javascript property name.
isValidJavascriptPropertyName(String) - Static method in class org.kopitubruk.util.json.JSONUtil
Return true if the input string is a valid Javascript property name using default identifier options.

J

JSONAble - Interface in org.kopitubruk.util.json
This interface specifies a method which implementing objects will use to provide a JSON representation of themselves.
JSONConfig - Class in org.kopitubruk.util.json
A configuration object for JSONUtil to control various encoding options.
JSONConfig() - Constructor for class org.kopitubruk.util.json.JSONConfig
Create a JSONConfig
JSONConfig(Locale) - Constructor for class org.kopitubruk.util.json.JSONConfig
Create a JSONConfig with the given locale.
JSONConfigDefaults - Class in org.kopitubruk.util.json
This class provides a singleton object which is used to change static defaults used by JSONConfig and it is used as an MBean to allow JMX clients with MBean support to view and modify the defaults.
JSONConfigDefaultsMBean - Interface in org.kopitubruk.util.json
MBean interface for JSONConfigDefaults to expose its methods to view and modify the defaults at run time when this library is used with an MBean server.
JSONException - Exception in org.kopitubruk.util.json
Holds some redundant code/data for the other exceptions thrown by JSONUtil.
JsonObject - Class in org.kopitubruk.util.json
This class provides a way to make an list of properties to be used to create JSON objects.
JsonObject() - Constructor for class org.kopitubruk.util.json.JsonObject
Create a dynamically sized JsonObject backed by an ArrayList.
JsonObject(JSONConfig) - Constructor for class org.kopitubruk.util.json.JsonObject
Create a dynamically sized JsonObject backed by an ArrayList.
JsonObject(int) - Constructor for class org.kopitubruk.util.json.JsonObject
Create a fixed size JsonObject backed by an array.
JsonObject(int, JSONConfig) - Constructor for class org.kopitubruk.util.json.JsonObject
Create a fixed size JsonObject backed by an array.
JSONParser - Class in org.kopitubruk.util.json
This is a JSON parser.
JSONParserException - Exception in org.kopitubruk.util.json
Exception for problems parsing JSON.
JSONReflectedClass - Class in org.kopitubruk.util.json
This class wraps a class to be explicitly reflected and allows you to choose the names of the fields to be reflected, regardless of privacy as well as set up aliases for field names in the JSON output.
JSONReflectedClass(Object) - Constructor for class org.kopitubruk.util.json.JSONReflectedClass
Create a new JSONReflectedClass
JSONReflectedClass(Object, Collection<String>) - Constructor for class org.kopitubruk.util.json.JSONReflectedClass
Create a new JSONReflectedClass
JSONReflectedClass(Object, Map<String, String>) - Constructor for class org.kopitubruk.util.json.JSONReflectedClass
Create a new JSONReflectedClass
JSONReflectedClass(Object, Collection<String>, Map<String, String>) - Constructor for class org.kopitubruk.util.json.JSONReflectedClass
Create a new JSONReflectedClass
JSONReflectedClass(String) - Constructor for class org.kopitubruk.util.json.JSONReflectedClass
Create a JSONReflectedClass using the given class name as a string optionally followed by field names and/or field name aliases.
JSONReflectionException - Exception in org.kopitubruk.util.json
Exception for wrapping reflection exceptions.
JSONUtil - Class in org.kopitubruk.util.json
This class converts certain common types of objects into JSON using the static methods JSONUtil.toJSON(Object), JSONUtil.toJSON(Object,JSONConfig), JSONUtil.toJSON(Object,Writer) and JSONUtil.toJSON(Object,JSONConfig,Writer).

L

listReflectedClasses() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Get a string with newline separated list of classes that get reflected.
listReflectedClasses() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get a string with newline separated list of classes that get reflected.
LoopDetectionFailureException - Exception in org.kopitubruk.util.json
Exception if the data structure loop detection breaks.

O

org.kopitubruk.util.json - package org.kopitubruk.util.json
Provides utilities to convert objects into JSON and parse JSON into Java objects.

P

PACKAGE - Static variable in class org.kopitubruk.util.json.ReflectUtil
Reflection will attempt to serialize package private, protected and public fields or fields that have package private, protected or public get methods that conform to JavaBean naming conventions.
parseJSON(String) - Static method in class org.kopitubruk.util.json.JSONParser
Parse a string of JSON data.
parseJSON(String, JSONConfig) - Static method in class org.kopitubruk.util.json.JSONParser
Parse a string of JSON data.
parseJSON(Reader) - Static method in class org.kopitubruk.util.json.JSONParser
Parse JSON from an input stream.
parseJSON(Reader, JSONConfig) - Static method in class org.kopitubruk.util.json.JSONParser
Parse JSON from an input stream.
PASS - Static variable in class org.kopitubruk.util.json.JSONConfig
Pass bad data through.
PRIVATE - Static variable in class org.kopitubruk.util.json.ReflectUtil
Reflection will attempt to serialize all fields including private.
PROTECTED - Static variable in class org.kopitubruk.util.json.ReflectUtil
Reflection will attempt to serialize protected and public fields or fields that have protected or public get methods that conform to JavaBean naming conventions.
PUBLIC - Static variable in class org.kopitubruk.util.json.ReflectUtil
Reflection will attempt to serialize only fields that are public or have public get methods that conform to JavaBean naming conventions.

R

ReflectUtil - Class in org.kopitubruk.util.json
Some reflection utility constants to be used with JSONConfig.setReflectionPrivacy(int) and JSONConfigDefaults.setReflectionPrivacy(int)
removeNumberFormat(Class<? extends Number>) - Method in class org.kopitubruk.util.json.JSONConfig
Remove the requested class from the number formats that this config knows about.
removeNumberFormat(Number) - Method in class org.kopitubruk.util.json.JSONConfig
Remove the requested class from the number formats that this config knows about.
removeNumberFormat(Class<? extends Number>) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Remove the requested class from the default number formats.
removeNumberFormat(Number) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Remove the requested class from the default number formats.
removeReflectClass(Object) - Method in class org.kopitubruk.util.json.JSONConfig
Remove the given class from the list of automatically reflected classes.
removeReflectClass(Object) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Remove the given class from the list of automatically reflected classes.
removeReflectClassByName(String) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Remove the given class from the set of classes to be reflected.
removeReflectClassByName(String) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Remove the given class from the set of classes to be reflected.
removeReflectClasses(Collection<?>) - Method in class org.kopitubruk.util.json.JSONConfig
Remove the given classes from the list of automatically reflected classes.
removeReflectClasses(Collection<?>) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Remove the classes of the given objects from the set of classes that automatically get reflected.
REPLACE - Static variable in class org.kopitubruk.util.json.JSONConfig
Replace bad data with the Unicode replacement character U+FFFD.
reset() - Method in class org.kopitubruk.util.json.IndentPadding
Reset this object's operating data.

S

setAllowReservedWordsInIdentifiers(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true then reserved words will be allowed in identifiers even when identifier validation is enabled.
setAllowReservedWordsInIdentifiers(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set default flag for allowing reserved words in identifiers.
setAllowReservedWordsInIdentifiers(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set default flag for allowing reserved words in identifiers.
setBadCharacterPolicy(int) - Method in class org.kopitubruk.util.json.JSONConfig
Convenience method to call both JSONConfig.setUnmatchedSurrogatePolicy(int) and JSONConfig.setUndefinedCodePointPolicy(int) using the same value.
setBadCharacterPolicy(int) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
setCacheReflectionData(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true, then when an object is reflected its reflection data will be cached to improve performance on subsequent reflections of objects of its class.
setCacheReflectionData(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
If true, then when an object is reflected its reflection data will be cached to improve performance on subsequent reflections of objects of its class.
setCacheReflectionData(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
If true, then when an object is reflected its reflection data will be cached to improve performance on subsequent reflections of objects of its class.
setCodeDefaults() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Reset all defaults to their original unmodified values.
setCodeDefaults() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Reset all defaults to their original unmodified values.
setDateGenFormat(DateFormat) - Method in class org.kopitubruk.util.json.JSONConfig
Set the date string generation format used when encodeDatesAsStrings or encodeDatesAsObjects are true.
setDateGenFormat(String) - Method in class org.kopitubruk.util.json.JSONConfig
Set the date string generation format.
setDateGenFormat(String) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the date format used for date string generation when encodeDatesAsStrings or encodeDatesAsObjects is true.
setDateGenFormat(DateFormat) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the date string generation format used when encodeDatesAsStrings or encodeDatesAsObjects is true.
setDateGenFormat(String) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the date format used for date string generation when encodeDatesAsStrings or encodeDatesAsObjects is true.
setDetectDataStructureLoops(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
Enable or disable data structure loop detection.
setDetectDataStructureLoops(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the default flag for detecting data structure loops.
setDetectDataStructureLoops(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the default flag for detecting data structure loops.
setEncodeDatesAsObjects(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true, then Date objects will be encoded as Javascript dates, using new Date(dateString).
setEncodeDatesAsObjects(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
If true, then Date objects will be encoded as Javascript dates, using new Date(dateString).
setEncodeDatesAsObjects(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
If true, then Date objects will be encoded as Javascript dates, using new Date(dateString).
setEncodeDatesAsStrings(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true, then Date objects will be encoded as ISO 8601 date strings or a custom date format if you have called JSONConfig.setDateGenFormat(DateFormat).
setEncodeDatesAsStrings(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the encodeDatesAsStrings policy.
setEncodeDatesAsStrings(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the encodeDatesAsStrings policy.
setEncodeNumericStringsAsNumbers(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true, then strings will be checked for number patterns and if they look like numbers, then they won't be quoted.
setEncodeNumericStringsAsNumbers(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the default flag for encoding of numeric strings as numbers.
setEncodeNumericStringsAsNumbers(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the default flag for encoding of numeric strings as numbers.
setEscapeBadIdentifierCodePoints(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true, then any bad code points in identifiers will be escaped.
setEscapeBadIdentifierCodePoints(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
If true, then any bad code points in identifiers will be escaped.
setEscapeBadIdentifierCodePoints(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
If true, then any bad code points in identifiers will be escaped.
setEscapeNonAscii(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If you want non-ascii characters encoded as Unicode escapes in strings and identifiers, you can do that by setting this to true.
setEscapeNonAscii(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the default flag for forcing escaping of non-ASCII characters in strings and identifiers.
setEscapeNonAscii(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the default flag for forcing escaping of non-ASCII characters in strings and identifiers.
setEscapeSurrogates(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true then all surrogates will be escaped in strings and identifiers and escapeNonAscii will be forced to false.
setEscapeSurrogates(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the default escapeSurrogates policy.
setEscapeSurrogates(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the default escapeSurrogates policy.
setFastStrings(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true, then string values will be copied to the output with no escaping or validation.
setFastStrings(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
If true, then string values will be copied to the output with no escaping or validation.
setFastStrings(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
If true, then string values will be copied to the output with no escaping or validation.
setFieldAliases(Map<String, String>) - Method in class org.kopitubruk.util.json.JSONReflectedClass
Set the custom names map.
setFieldNames(Collection<String>) - Method in class org.kopitubruk.util.json.JSONReflectedClass
Set the set of field names to reflect.
setFullJSONIdentifierCodePoints(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true, then the full set of identifier code points permitted by the JSON standard will be allowed instead of the more restrictive set permitted by the ECMAScript standard.
setFullJSONIdentifierCodePoints(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
If true, then the full set of identifier code points permitted by the JSON standard will be allowed instead of the more restrictive set permitted by the ECMAScript standard.
setFullJSONIdentifierCodePoints(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
If true, then the full set of identifier code points permitted by the JSON standard will be allowed instead of the more restrictive set permitted by the ECMAScript standard.
setIndent(String) - Method in class org.kopitubruk.util.json.IndentPadding
Set the spacing for one indent level (default is 4 spaces).
setIndentPadding(IndentPadding) - Method in class org.kopitubruk.util.json.JSONConfig
Set the padding object.
setIndentPadding(IndentPadding) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the padding object.
setJSONConfig(JSONConfig) - Method in class org.kopitubruk.util.json.JsonObject
Set the JSONConfig for this object.
setLocale(Locale) - Method in class org.kopitubruk.util.json.JSONConfig
Set the locale.
setLocale(String) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
setLocale(Locale) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Set a default locale for new JSONConfig objects to use.
setLocale(Locale) - Method in exception org.kopitubruk.util.json.JSONException
Set the locale to be used by JSONException.getLocalizedMessage()
setLocaleLanguageTag(String) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the default locale for new JSONConfig objects to use by specifying a IETF BCP 47 language tag suitable for use by Locale.forLanguageTag(String).
setLocaleLanguageTag(String) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the default locale for new JSONConfig objects to use.
setNewLine(String) - Method in class org.kopitubruk.util.json.IndentPadding
Set the string to use for a new line (default \n).
setObjClass(Object) - Method in class org.kopitubruk.util.json.JSONReflectedClass
Set the object class.
setPassThroughEscapes(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true, then legal escapes in strings will be passed through unchanged.
setPassThroughEscapes(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
If true, then escapes in strings will be passed through unchanged.
setPassThroughEscapes(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
If true, then escapes in strings will be passed through unchanged.
setPreciseNumbers(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true then integer numbers which are not exactly representable by a 64 bit double precision floating point number will be quoted in the output.
setPreciseNumbers(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
If true then numbers which are not exactly representable by a 64 bit double precision floating point number will be quoted in the output.
setPreciseNumbers(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
If true then numbers which are not exactly representable by a 64 bit double precision floating point number will be quoted in the output.
setQuoteIdentifier(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
Control whether identifiers are quoted or not.
setQuoteIdentifier(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the default flag for forcing quotes on identifiers.
setQuoteIdentifier(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the default flag for forcing quotes on identifiers.
setReflectionPrivacy(int) - Method in class org.kopitubruk.util.json.JSONConfig
Set the privacy level for reflection.
setReflectionPrivacy(int) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the privacy level for reflection.
setReflectionPrivacy(int) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the privacy level for reflection.
setReflectUnknownObjects(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
Set the unknown object reflection encoding policy.
setReflectUnknownObjects(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the default unknown object reflection encoding policy.
setReflectUnknownObjects(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the reflection encoding policy.
setSmallNumbers(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true then JSONParser will attempt to minimize the storage used for all numbers.
setSmallNumbers(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
If true then JSONParser will attempt to minimize the storage used for all numbers.
setSmallNumbers(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
If true then JSONParser will attempt to minimize the storage used for all numbers.
setUndefinedCodePointPolicy(int) - Method in class org.kopitubruk.util.json.JSONConfig
Tell JSONUtil what to do when it encounters undefined code points in strings and identifiers.
setUndefinedCodePointPolicy(int) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Tell JSONUtil what to do by default when it encounters undefined code points in strings and identifiers.
setUndefinedCodePointPolicy(int) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Tell JSONUtil what to do by default when it encounters undefined code points in strings and identifiers.
setUnEscapeWherePossible(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true then where possible, undo inline escapes in strings before going through normal string processing.
setUnEscapeWherePossible(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set default flag for undoing inline escapes in strings.
setUnEscapeWherePossible(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set default flag for undoing inline escapes in strings.
setUnmatchedSurrogatePolicy(int) - Method in class org.kopitubruk.util.json.JSONConfig
Tell JSONUtil what to do when it encounters unmatched surrogates in strings and identifiers.
setUnmatchedSurrogatePolicy(int) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Tell JSONUtil what to do by default when it encounters unmatched surrogates in strings and identifiers.
setUnmatchedSurrogatePolicy(int) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Tell JSONUtil what to do by default when it encounters unmatched surrogates in strings and identifiers.
setUseECMA6(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If you set this to true, then when JSONUtil generates Unicode escapes, it will use ECMAScript 6 code point escapes if they are shorter than code unit escapes.
setUseECMA6(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
If you set this to true, then by default when JSONUtil generates Unicode escapes, it will use ECMAScript 6 code point escapes if they are shorter than code unit escapes.
setUseECMA6(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
If you set this to true, then when JSONUtil generates Unicode escapes, it will use ECMAScript 6 code point escapes if they are shorter than code unit escapes.
setUsePrimitiveArrays(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true, then when JSONParser encounters a JSON array of non-null wrappers of primitives and those primitives are all compatible with each other, then instead of an ArrayList of wrappers for those primitives it will create an array of those primitives in order to save memory.
setUsePrimitiveArrays(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
If true, then when JSONParser encounters a JSON array of non-null wrappers of primitives and those primitives are all compatible with each other, then instead of an ArrayList of wrappers for those primitives it will create an array of those primitives in order to save memory.
setUsePrimitiveArrays(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
If true, then when JSONParser encounters a JSON array of non-null wrappers of primitives and those primitives are all compatible with each other, then instead of an ArrayList of wrappers for those primitives it will create an array of those primitives in order to save memory.
setValidatePropertyNames(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true, then property names will be validated.
setValidatePropertyNames(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
Set the default flag for validation of property names.
setValidatePropertyNames(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the default flag for validation of property names.
size() - Method in class org.kopitubruk.util.json.JsonObject
Get the number of elements in this property list.

T

toJSON() - Method in interface org.kopitubruk.util.json.JSONAble
Convert this object to a string of JSON data.
toJSON(JSONConfig) - Method in interface org.kopitubruk.util.json.JSONAble
Convert this object to a string of JSON data.
toJSON(Writer) - Method in interface org.kopitubruk.util.json.JSONAble
Write to the given writer as JSON data using all defaults for the configuration.
toJSON(JSONConfig, Writer) - Method in interface org.kopitubruk.util.json.JSONAble
Write this object to the given writer as JSON data.
toJSON() - Method in class org.kopitubruk.util.json.JsonObject
Return the JSON encoding of this object using the configuration options set in this object or defaults if they are not set.
toJSON(JSONConfig) - Method in class org.kopitubruk.util.json.JsonObject
Return the JSON encoding of this object using the given configuration options.
toJSON(Writer) - Method in class org.kopitubruk.util.json.JsonObject
Write this JSON encoding of this object to the given Writer using the configuration options set in this object or defaults if they are not set.
toJSON(JSONConfig, Writer) - Method in class org.kopitubruk.util.json.JsonObject
Write the JSON encoding of this object to the given Writer using the given configuration options.
toJSON(Object) - Static method in class org.kopitubruk.util.json.JSONUtil
Convert an object to JSON and return it as a String.
toJSON(Object, JSONConfig) - Static method in class org.kopitubruk.util.json.JSONUtil
Convert an object to JSON and return it as a String.
toJSON(Object, Writer) - Static method in class org.kopitubruk.util.json.JSONUtil
Convert an object to JSON and write it to the given Writer.
toJSON(Object, JSONConfig, Writer) - Static method in class org.kopitubruk.util.json.JSONUtil
Convert an object to JSON and write it to the given Writer.
toString() - Method in class org.kopitubruk.util.json.JsonObject
Return the JSON encoding of this object using the configuration options set in this object or defaults if they are not set.
trimToSize() - Method in class org.kopitubruk.util.json.JsonObject
If this is a dynamically sized JsonObject, then call ArrayList.trimToSize() on its backing storage.

U

UndefinedCodePointException - Exception in org.kopitubruk.util.json
Exception used when undefined code points are encountered in the input and the value of JSONConfig.getUndefinedCodePointPolicy() is JSONConfig.EXCEPTION.
UnmatchedSurrogateException - Exception in org.kopitubruk.util.json
Exception used when unmatched surrogates are encountered in the input and the value of JSONConfig.getUnmatchedSurrogatePolicy() is JSONConfig.EXCEPTION.
A B C D E G H I J L O P R S T U 

Copyright © 2016. All rights reserved.