net.minidev.json.mapper
public class CompessorMapper extends AMapper<CompessorMapper>
Constructor and Description |
---|
CompessorMapper(Appendable out,
JSONStyle compression) |
CompessorMapper(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
|
AMapper<?> |
startArray(String key)
called when json-smart parser start an array.
|
AMapper<?> |
startObject(String key)
called when json-smart parser meet an object key
|
public CompessorMapper(Appendable out, JSONStyle compression)
public CompessorMapper(Appendable out, JSONStyle compression, Boolean isObj)
public AMapper<?> startObject(String key) throws IOException
AMapper
startObject
in class AMapper<CompessorMapper>
IOException
public AMapper<?> startArray(String key) throws IOException
AMapper
startArray
in class AMapper<CompessorMapper>
key
- the destination key name, or null.IOException
public void setValue(Object current, String key, Object value) throws IOException
AMapper
setValue
in class AMapper<CompessorMapper>
IOException
public void addValue(Object current, Object value) throws IOException
AMapper
addValue
in class AMapper<CompessorMapper>
IOException
public Object createObject()
AMapper
createObject
in class AMapper<CompessorMapper>
public Object createArray()
AMapper
createArray
in class AMapper<CompessorMapper>
public CompessorMapper convert(Object current)
AMapper
convert
in class AMapper<CompessorMapper>
Copyright © 2014 Chemouni Uriel. All Rights Reserved.