Skip navigation links
A B C D G I J L O P R S T 

A

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.

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.
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.
clone() - Method in class org.kopitubruk.util.json.JSONConfig
Return a clone of this object.

D

DataStructureLoopException - Exception in org.kopitubruk.util.json
Exception for handling loops in the data structures sent to various toJSON methods.
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.

G

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.
getLocale() - Method in class org.kopitubruk.util.json.JSONConfig
Get the locale.
getLocale() - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
Set a default locale for new JSONConfig objects to use.
getLocalizedMessage() - Method in exception org.kopitubruk.util.json.JSONException
 
getMessage() - Method in exception org.kopitubruk.util.json.JSONException
 
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 th 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.

I

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.
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.
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 quote non-ASCII policy.
isEscapeNonAscii() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Get the default quote 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
The default escape surrogates policy.
isEscapeSurrogates() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
 
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.
isReservedWord(String) - Static method in class org.kopitubruk.util.json.JSONUtil
Check if the given string is a reserved word.
isUnEscapeWherePossible() - Method in class org.kopitubruk.util.json.JSONConfig
The unEscape policy.
isUnEscapeWherePossible() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
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 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.

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 a MBean server.
JSONException - Exception in org.kopitubruk.util.json
Holds some redundant code/data for the other exceptions thrown by JSONUtil.
JSONParser - Class in org.kopitubruk.util.json
This is a JSON parser.
JSONParserException - Exception in org.kopitubruk.util.json
Exception for problems parsing JSON.
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

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

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.

R

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.

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.
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.
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 forcing quotes on identifiers.
setDetectDataStructureLoops(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the default flag for forcing quotes on identifiers.
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 quoted.
setEscapeNonAscii(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If you want non-ascii characters encoded as Unicode escapes, 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.
setEscapeNonAscii(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the default flag for forcing escaping of non-ASCII characters.
setEscapeSurrogates(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true then all surrogates will be escaped.
setEscapeSurrogates(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
If true, then surrogates will be escaped.
setEscapeSurrogates(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
 
setLocale(Locale) - Method in class org.kopitubruk.util.json.JSONConfig
Set the locale.
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()
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.
setUnEscapeWherePossible(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If true then where possible, undo inline escapes in strings.
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.
setUseECMA6(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
If you set this to true, then when the 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
Set the default flag for using ECMAScript 6 code points to encode Unicode escapes.
setUseECMA6(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
Set the default flag for using ECMAScript 6 code points to encode Unicode escapes and allowing letter numbers in identifiers.
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.

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(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.
A B C D G I J L O P R S T 
Skip navigation links

Copyright © 2015. All rights reserved.