- JSON_READER - Static variable in class com.cedarsoftware.util.io.JsonReader
-
Pointer to 'this' (automatically placed in the Map)
- JSON_WRITER - Static variable in interface com.cedarsoftware.util.io.JsonWriter.JsonClassWriterEx
-
- JsonIoException - Exception in com.cedarsoftware.util.io
-
Custom RuntimeException subclass that is used as the main exception thrown by
json-io.
- JsonIoException() - Constructor for exception com.cedarsoftware.util.io.JsonIoException
-
Constructs a new runtime exception with null
as its
detail message.
- JsonIoException(String) - Constructor for exception com.cedarsoftware.util.io.JsonIoException
-
Constructs a new runtime exception with the specified detail message.
- JsonIoException(String, Throwable) - Constructor for exception com.cedarsoftware.util.io.JsonIoException
-
Constructs a new runtime exception with the specified detail message and
cause.
- JsonIoException(Throwable) - Constructor for exception com.cedarsoftware.util.io.JsonIoException
-
Constructs a new runtime exception with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
- JsonIoException(String, Throwable, boolean, boolean) - Constructor for exception com.cedarsoftware.util.io.JsonIoException
-
Constructs a new runtime exception with the specified detail
message, cause, suppression enabled or disabled, and writable
stack trace enabled or disabled.
- JsonObject<K,V> - Class in com.cedarsoftware.util.io
-
This class holds a JSON object in a LinkedHashMap.
- JsonObject() - Constructor for class com.cedarsoftware.util.io.JsonObject
-
- jsonObjectsToJava(JsonObject) - Method in class com.cedarsoftware.util.io.JsonReader
-
Convert a root JsonObject that represents parsed JSON, into
an actual Java object.
- JsonReader - Class in com.cedarsoftware.util.io
-
Read an object graph in JSON format and make it available in Java objects, or
in a "Map of Maps." (untyped representation).
- JsonReader() - Constructor for class com.cedarsoftware.util.io.JsonReader
-
- JsonReader(InputStream) - Constructor for class com.cedarsoftware.util.io.JsonReader
-
- JsonReader(Map<String, Object>) - Constructor for class com.cedarsoftware.util.io.JsonReader
-
Use this constructor if you already have a JsonObject graph and want to parse it into
Java objects by calling jsonReader.jsonObjectsToJava(rootJsonObject) after constructing
the JsonReader.
- JsonReader(InputStream, boolean) - Constructor for class com.cedarsoftware.util.io.JsonReader
-
- JsonReader(InputStream, Map<String, Object>) - Constructor for class com.cedarsoftware.util.io.JsonReader
-
- JsonReader(String, Map<String, Object>) - Constructor for class com.cedarsoftware.util.io.JsonReader
-
- JsonReader(byte[], Map<String, Object>) - Constructor for class com.cedarsoftware.util.io.JsonReader
-
- JsonReader.ClassFactory - Interface in com.cedarsoftware.util.io
-
Subclass this interface and create a class that will return a new instance of the
passed in Class (c).
- JsonReader.ClassFactoryEx - Interface in com.cedarsoftware.util.io
-
Subclass this interface and create a class that will return a new instance of the
passed in Class (c).
- JsonReader.CollectionFactory - Class in com.cedarsoftware.util.io
-
Use to create new instances of collection interfaces (needed for empty collections)
- JsonReader.Factory - Interface in com.cedarsoftware.util.io
-
Common ancestor for ClassFactory and ClassFactoryEx.
- JsonReader.JsonClassReader - Interface in com.cedarsoftware.util.io
-
Implement this interface to add a custom JSON reader.
- JsonReader.JsonClassReaderBase - Interface in com.cedarsoftware.util.io
-
Common ancestor for JsonClassReader and JsonClassReaderEx.
- JsonReader.JsonClassReaderEx - Interface in com.cedarsoftware.util.io
-
Implement this interface to add a custom JSON reader.
- JsonReader.JsonClassReaderEx.Support - Class in com.cedarsoftware.util.io
-
Allow custom readers to have access to the JsonReader
- JsonReader.MapFactory - Class in com.cedarsoftware.util.io
-
Use to create new instances of Map interfaces (needed for empty Maps).
- JsonReader.MissingFieldHandler - Interface in com.cedarsoftware.util.io
-
Used to react to fields missing when reading an object.
- JsonStringWriter() - Constructor for class com.cedarsoftware.util.io.Writers.JsonStringWriter
-
- jsonToJava(String) - Static method in class com.cedarsoftware.util.io.JsonReader
-
Convert the passed in JSON string into a Java object graph.
- jsonToJava(String, Map<String, Object>) - Static method in class com.cedarsoftware.util.io.JsonReader
-
Convert the passed in JSON string into a Java object graph.
- jsonToJava(InputStream, Map<String, Object>) - Static method in class com.cedarsoftware.util.io.JsonReader
-
Convert the passed in JSON string into a Java object graph.
- jsonToMaps(String) - Static method in class com.cedarsoftware.util.io.JsonReader
-
Map args = ["USE_MAPS": true]
Use JsonReader.jsonToJava(String json, args)
Note that the return type will match the JSON type (array, object, string, long, boolean, or null).
- jsonToMaps(String, Map<String, Object>) - Static method in class com.cedarsoftware.util.io.JsonReader
-
Map args = ["USE_MAPS": true]
Use JsonReader.jsonToJava(String json, args)
Note that the return type will match the JSON type (array, object, string, long, boolean, or null).
- jsonToMaps(InputStream, Map<String, Object>) - Static method in class com.cedarsoftware.util.io.JsonReader
-
Map args = ["USE_MAPS": true]
Use JsonReader.jsonToJava(inputStream, args)
Note that the return type will match the JSON type (array, object, string, long, boolean, or null).
- JsonWriter - Class in com.cedarsoftware.util.io
-
Output a Java object graph in JSON format.
- JsonWriter(OutputStream) - Constructor for class com.cedarsoftware.util.io.JsonWriter
-
- JsonWriter(OutputStream, Map<String, Object>) - Constructor for class com.cedarsoftware.util.io.JsonWriter
-
- JsonWriter.JsonClassWriter - Interface in com.cedarsoftware.util.io
-
Implement this interface to customize the JSON output for a given class.
- JsonWriter.JsonClassWriterBase - Interface in com.cedarsoftware.util.io
-
Common ancestor for JsonClassWriter and JsonClassWriterEx.
- JsonWriter.JsonClassWriterEx - Interface in com.cedarsoftware.util.io
-
Implement this interface to customize the JSON output for a given class.
- JsonWriter.JsonClassWriterEx.Support - Class in com.cedarsoftware.util.io
-
If access to the JsonWriter is needed, JsonClassWriter's can access it by accessing Support.getWriter(args).
- tabIn() - Method in class com.cedarsoftware.util.io.JsonWriter
-
Tab the output left (less indented)
- tabOut() - Method in class com.cedarsoftware.util.io.JsonWriter
-
Tab the output right (more indented)
- TimestampReader() - Constructor for class com.cedarsoftware.util.io.Readers.TimestampReader
-
- TimestampWriter() - Constructor for class com.cedarsoftware.util.io.Writers.TimestampWriter
-
- TimeZoneReader() - Constructor for class com.cedarsoftware.util.io.Readers.TimeZoneReader
-
- TimeZoneWriter() - Constructor for class com.cedarsoftware.util.io.Writers.TimeZoneWriter
-
- traceFields(Deque<Object>, Object, Map<Class, List<Field>>) - Method in class com.cedarsoftware.util.io.JsonWriter
-
Reach-ability trace to visit all objects within the graph to be written.
- traceReferences(Object) - Method in class com.cedarsoftware.util.io.JsonWriter
-
Walk object graph and visit each instance, following each field, each Collection, Map and so on.
- traverseArray(Deque<JsonObject<String, Object>>, JsonObject<String, Object>) - Method in class com.cedarsoftware.util.io.MapResolver
-
- traverseArray(Deque<JsonObject<String, Object>>, JsonObject<String, Object>) - Method in class com.cedarsoftware.util.io.ObjectResolver
-
Traverse the JsonObject associated to an array (of any type).
- traverseCollection(Deque<JsonObject<String, Object>>, JsonObject<String, Object>) - Method in class com.cedarsoftware.util.io.MapResolver
-
Process java.util.Collection and it's derivatives.
- traverseCollection(Deque<JsonObject<String, Object>>, JsonObject<String, Object>) - Method in class com.cedarsoftware.util.io.ObjectResolver
-
Process java.util.Collection and it's derivatives.
- traverseFields(Deque<JsonObject<String, Object>>, JsonObject<String, Object>) - Method in class com.cedarsoftware.util.io.MapResolver
-
Walk the JsonObject fields and perform necessary substitutions so that all references matched up.
- traverseFields(Deque<JsonObject<String, Object>>, JsonObject<String, Object>) - Method in class com.cedarsoftware.util.io.ObjectResolver
-
Walk the Java object fields and copy them from the JSON object to the Java object, performing
any necessary conversions on primitives, or deep traversals for field assignments to other objects,
arrays, Collections, or Maps.
- TYPE - Static variable in class com.cedarsoftware.util.io.JsonWriter
-
Force @type always
- TYPE_NAME_MAP - Static variable in class com.cedarsoftware.util.io.JsonReader
-
If set, this map will be used when writing @type values - allows short-hand abbreviations type names
- TYPE_NAME_MAP - Static variable in class com.cedarsoftware.util.io.JsonWriter
-
If set, this map will be used when writing @type values - allows short-hand abbreviations type names
- write(Object, boolean, Writer) - Method in interface com.cedarsoftware.util.io.JsonWriter.JsonClassWriter
-
When write() is called, it is expected that subclasses will write the appropriate JSON
to the passed in Writer.
- write(Object, boolean, Writer, Map<String, Object>) - Method in interface com.cedarsoftware.util.io.JsonWriter.JsonClassWriterEx
-
When write() is called, it is expected that subclasses will write the appropriate JSON
to the passed in Writer.
- write(Object) - Method in class com.cedarsoftware.util.io.JsonWriter
-
Write the passed in Java object in JSON format.
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.AtomicBooleanWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.AtomicIntegerWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.AtomicLongWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.BigDecimalWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.BigIntegerWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.CalendarWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.ClassWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.DateWriter
-
- write(Object, boolean, Writer, Map) - Method in class com.cedarsoftware.util.io.Writers.DateWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.JsonStringWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.LocaleWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.StringBufferWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.StringBuilderWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.TimestampWriter
-
- write(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.Writers.TimeZoneWriter
-
- WRITE_LONGS_AS_STRINGS - Static variable in class com.cedarsoftware.util.io.JsonWriter
-
If set, longs are written in quotes (Javascript safe)
- writeArrayElementIfMatching(Class, Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.JsonWriter
-
Write the passed in array element to the JSON output, if any only if, there is a customer writer
for the class of the instance 'o'.
- writeCustom(Class, Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.JsonWriter
-
Perform the actual custom writing for an array element that has a custom writer.
- writeIfMatching(Object, boolean, Writer) - Method in class com.cedarsoftware.util.io.JsonWriter
-
Write the passed in object (o) to the JSON output stream, if and only if, there is a custom
writer associated to the Class of object (o).
- writeImpl(Object, boolean) - Method in class com.cedarsoftware.util.io.JsonWriter
-
Main entry point (mostly used internally, but may be called from a Custom JSON writer).
- writeImpl(Object, boolean, boolean, boolean) - Method in class com.cedarsoftware.util.io.JsonWriter
-
Main entry point (mostly used internally, but may be called from a Custom JSON writer).
- writeJsonUtf8String(String, Writer) - Static method in class com.cedarsoftware.util.io.JsonWriter
-
Write out special characters "\b, \f, \t, \n, \r", as such, backslash as \\
quote as \" and values less than an ASCII space (20hex) as "\\u00xx" format,
characters in the range of ASCII space to a '~' as ASCII, and anything higher in UTF-8.
- writeJsonUtf8String(String, Writer) - Static method in class com.cedarsoftware.util.io.Writers
-
- writeObject(Object, boolean, boolean) - Method in class com.cedarsoftware.util.io.JsonWriter
-
- writePrimitiveForm(Object, Writer) - Method in interface com.cedarsoftware.util.io.JsonWriter.JsonClassWriter
-
This method will be called to write the item in primitive form (if the response to hasPrimitiveForm()
was true).
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.AtomicBooleanWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.AtomicIntegerWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.AtomicLongWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.BigDecimalWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.BigIntegerWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.CalendarWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.ClassWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.DateWriter
-
- writePrimitiveForm(Object, Writer, Map) - Method in class com.cedarsoftware.util.io.Writers.DateWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.JsonStringWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.LocaleWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.StringBufferWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.StringBuilderWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.TimestampWriter
-
- writePrimitiveForm(Object, Writer) - Method in class com.cedarsoftware.util.io.Writers.TimeZoneWriter
-
- Writers - Class in com.cedarsoftware.util.io
-
All special writers for json-io are stored here.
- Writers.AtomicBooleanWriter - Class in com.cedarsoftware.util.io
-
- Writers.AtomicIntegerWriter - Class in com.cedarsoftware.util.io
-
- Writers.AtomicLongWriter - Class in com.cedarsoftware.util.io
-
- Writers.BigDecimalWriter - Class in com.cedarsoftware.util.io
-
- Writers.BigIntegerWriter - Class in com.cedarsoftware.util.io
-
- Writers.CalendarWriter - Class in com.cedarsoftware.util.io
-
- Writers.ClassWriter - Class in com.cedarsoftware.util.io
-
- Writers.DateWriter - Class in com.cedarsoftware.util.io
-
- Writers.JsonStringWriter - Class in com.cedarsoftware.util.io
-
- Writers.LocaleWriter - Class in com.cedarsoftware.util.io
-
- Writers.StringBufferWriter - Class in com.cedarsoftware.util.io
-
- Writers.StringBuilderWriter - Class in com.cedarsoftware.util.io
-
- Writers.TimestampWriter - Class in com.cedarsoftware.util.io
-
- Writers.TimeZoneWriter - Class in com.cedarsoftware.util.io
-