Package net.minidev.json.writer
Class JsonReaderI<T>
java.lang.Object
net.minidev.json.writer.JsonReaderI<T>
- Type Parameters:
T- result type
- 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.
- Author:
- uriel Chemouni
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd a value in an array json object.Allow a mapper to convert a temporary 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-------------voidcalled 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
-
-
Constructor Details
-
JsonReaderI
Reader can be link to the JsonReader Base- Parameters:
base- parent reader
-
-
Method Details
-
startObject
called when json-smart parser meet an object key- Parameters:
key- key name- Throws:
ParseExceptionIOException
-
startArray
called when json-smart parser start an array.- Parameters:
key- the destination key name, or null.- Throws:
ParseExceptionIOException
-
setValue
called when json-smart done parsing a value- Throws:
ParseExceptionIOException
-
getValue
------------- -
getType
-
addValue
add a value in an array json object.- Throws:
ParseExceptionIOException
-
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 convert a temporary structure to the final data format. example: convert an List<Integer> to an int[]
-