|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minidev.json.mapper.AMapper<CompessorMapper>
net.minidev.json.mapper.CompessorMapper
public class CompessorMapper
Constructor Summary | |
---|---|
CompessorMapper(Appendable out,
JSONStyle compression)
|
|
CompessorMapper(Appendable out,
JSONStyle compression,
Boolean isObj)
|
Method Summary | |
---|---|
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 parssing 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 |
Methods inherited from class net.minidev.json.mapper.AMapper |
---|
getType, getValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompessorMapper(Appendable out, JSONStyle compression)
public CompessorMapper(Appendable out, JSONStyle compression, Boolean isObj)
Method Detail |
---|
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>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |