T
- public abstract class JsonReaderI<T> extends Object
Modifier and Type | Field and Description |
---|---|
JsonReader |
base |
Constructor and Description |
---|
JsonReaderI(JsonReader base)
Reader can be link to the JsonReader Base
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(Object current,
Object value)
add a value in an array json object.
|
T |
convert(Object current)
Allow a mapper to converte a temprary structure to the final data format.
|
Object |
createArray()
use to instantiate a new object that will be used as an array
|
Object |
createObject()
use to instantiate a new object that will be used as an object
|
Type |
getType(String key) |
Object |
getValue(Object current,
String key)
-------------
|
void |
setValue(Object current,
String key,
Object value)
called when json-smart done parsing a value
|
JsonReaderI<?> |
startArray(String key)
called when json-smart parser start an array.
|
JsonReaderI<?> |
startObject(String key)
called when json-smart parser meet an object key
|
public final JsonReader base
public JsonReaderI(JsonReader base)
base
- public JsonReaderI<?> startObject(String key) throws ParseException, IOException
ParseException
IOException
public JsonReaderI<?> startArray(String key) throws ParseException, IOException
key
- the destination key name, or null.ParseException
IOException
public void setValue(Object current, String key, Object value) throws ParseException, IOException
ParseException
IOException
public void addValue(Object current, Object value) throws ParseException, IOException
ParseException
IOException
public Object createObject()
public Object createArray()
Copyright © 2016 Chemouni Uriel. All rights reserved.