Package net.minidev.json.writer
Class DefaultMapper<T>
java.lang.Object
net.minidev.json.writer.JsonReaderI<T>
net.minidev.json.writer.DefaultMapper<T>
- Type Parameters:
T
-
Simple Reader Class for generic Map
-
Field Summary
Fields inherited from class net.minidev.json.writer.JsonReaderI
base
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add a value in an array json object.use to instantiate a new object that will be used as an arrayuse to instantiate a new object that will be used as an objectvoid
called when json-smart done parsing a valuestartArray
(String key) called when json-smart parser start an array.startObject
(String key) called when json-smart parser meet an object keyMethods inherited from class net.minidev.json.writer.JsonReaderI
convert, getType, getValue
-
Constructor Details
-
DefaultMapper
-
-
Method Details
-
startObject
Description copied from class:JsonReaderI
called when json-smart parser meet an object key- Overrides:
startObject
in classJsonReaderI<T>
-
startArray
Description copied from class:JsonReaderI
called when json-smart parser start an array.- Overrides:
startArray
in classJsonReaderI<T>
- Parameters:
key
- the destination key name, or null.
-
createObject
Description copied from class:JsonReaderI
use to instantiate a new object that will be used as an object- Overrides:
createObject
in classJsonReaderI<T>
-
createArray
Description copied from class:JsonReaderI
use to instantiate a new object that will be used as an array- Overrides:
createArray
in classJsonReaderI<T>
-
setValue
Description copied from class:JsonReaderI
called when json-smart done parsing a value- Overrides:
setValue
in classJsonReaderI<T>
-
addValue
Description copied from class:JsonReaderI
add a value in an array json object.- Overrides:
addValue
in classJsonReaderI<T>
-