Package net.minidev.json.writer
Class JsonReaderI<T>
java.lang.Object
net.minidev.json.writer.JsonReaderI<T>
- Type Parameters:
T
-
- Direct Known Subclasses:
ArraysMapper
,BeansMapper
,BeansMapper.Bean
,BeansMapper.BeanNoConv
,CollectionMapper.ListClass
,CollectionMapper.ListType
,CollectionMapper.MapClass
,CollectionMapper.MapType
,CompessorMapper
,DefaultMapper
,DefaultMapperCollection
,DefaultMapperOrdered
,FakeMapper
,MapperRemapped
,UpdaterMapper
Default datatype mapper use by Json-smart ton store data.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add a value in an array json object.Allow a mapper to converte a temprary structure to the final data format.use to instantiate a new object that will be used as an arrayuse to instantiate a new object that will be used as an object-------------void
called when json-smart done parsing a valueJsonReaderI
<?> startArray
(String key) called when json-smart parser start an array.JsonReaderI
<?> startObject
(String key) called when json-smart parser meet an object key
-
Field Details
-
base
-
ERR_MSG
-
-
Constructor Details
-
JsonReaderI
Reader can be link to the JsonReader Base- Parameters:
base
-
-
-
Method Details
-
startObject
called when json-smart parser meet an object key- Throws:
ParseException
IOException
-
startArray
called when json-smart parser start an array.- Parameters:
key
- the destination key name, or null.- Throws:
ParseException
IOException
-
setValue
called when json-smart done parsing a value- Throws:
ParseException
IOException
-
getValue
------------- -
getType
-
addValue
add a value in an array json object.- Throws:
ParseException
IOException
-
createObject
use to instantiate a new object that will be used as an object -
createArray
use to instantiate a new object that will be used as an array -
convert
Allow a mapper to converte a temprary structure to the final data format. example: convert an Listto an int[]
-