public class CompessorMapper extends JsonReaderI<CompessorMapper>
base| Constructor and Description |
|---|
CompessorMapper(JsonReader base,
Appendable out,
JSONStyle compression) |
CompessorMapper(JsonReader base,
Appendable out,
JSONStyle compression,
Boolean isObj) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(Object current,
Object value)
add a value in an array json object.
|
CompessorMapper |
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
|
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
|
getType, getValuepublic CompessorMapper(JsonReader base, Appendable out, JSONStyle compression)
public CompessorMapper(JsonReader base, Appendable out, JSONStyle compression, Boolean isObj)
public JsonReaderI<?> startObject(String key) throws IOException
JsonReaderIstartObject in class JsonReaderI<CompessorMapper>IOExceptionpublic JsonReaderI<?> startArray(String key) throws IOException
JsonReaderIstartArray in class JsonReaderI<CompessorMapper>key - the destination key name, or null.IOExceptionpublic void setValue(Object current, String key, Object value) throws IOException
JsonReaderIsetValue in class JsonReaderI<CompessorMapper>IOExceptionpublic void addValue(Object current, Object value) throws IOException
JsonReaderIaddValue in class JsonReaderI<CompessorMapper>IOExceptionpublic Object createObject()
JsonReaderIcreateObject in class JsonReaderI<CompessorMapper>public Object createArray()
JsonReaderIcreateArray in class JsonReaderI<CompessorMapper>public CompessorMapper convert(Object current)
JsonReaderIconvert in class JsonReaderI<CompessorMapper>Copyright © 2015 Chemouni Uriel. All rights reserved.