public class CompessorMapper extends JsonReaderI<CompessorMapper>
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Boolean |
_isObj |
private JSONStyle |
compression |
private boolean |
isClosed |
private boolean |
isOpen |
private boolean |
needSep |
private java.lang.Appendable |
out |
base| Constructor and Description |
|---|
CompessorMapper(JsonReader base,
java.lang.Appendable out,
JSONStyle compression) |
CompessorMapper(JsonReader base,
java.lang.Appendable out,
JSONStyle compression,
java.lang.Boolean isObj) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addComma() |
void |
addValue(java.lang.Object current,
java.lang.Object value)
add a value in an array json object.
|
private void |
close(java.lang.Object obj) |
CompessorMapper |
convert(java.lang.Object current)
Allow a mapper to converte a temprary structure to the final data format.
|
java.lang.Object |
createArray()
use to instantiate a new object that will be used as an array
|
java.lang.Object |
createObject()
use to instantiate a new object that will be used as an object
|
private boolean |
isArray() |
private boolean |
isCompressor(java.lang.Object obj) |
private boolean |
isObject() |
private void |
open(java.lang.Object obj) |
void |
setValue(java.lang.Object current,
java.lang.String key,
java.lang.Object value)
called when json-smart done parsing a value
|
JsonReaderI<?> |
startArray(java.lang.String key)
called when json-smart parser start an array.
|
private void |
startKey(java.lang.String key) |
JsonReaderI<?> |
startObject(java.lang.String key)
called when json-smart parser meet an object key
|
private void |
writeValue(java.lang.Object value) |
getType, getValueprivate java.lang.Appendable out
private JSONStyle compression
private java.lang.Boolean _isObj
private boolean needSep
private boolean isOpen
private boolean isClosed
public CompessorMapper(JsonReader base, java.lang.Appendable out, JSONStyle compression)
public CompessorMapper(JsonReader base, java.lang.Appendable out, JSONStyle compression, java.lang.Boolean isObj)
private boolean isArray()
private boolean isObject()
private boolean isCompressor(java.lang.Object obj)
public JsonReaderI<?> startObject(java.lang.String key) throws java.io.IOException
JsonReaderIstartObject in class JsonReaderI<CompessorMapper>java.io.IOExceptionpublic JsonReaderI<?> startArray(java.lang.String key) throws java.io.IOException
JsonReaderIstartArray in class JsonReaderI<CompessorMapper>key - the destination key name, or null.java.io.IOExceptionprivate void startKey(java.lang.String key)
throws java.io.IOException
java.io.IOExceptionpublic void setValue(java.lang.Object current,
java.lang.String key,
java.lang.Object value)
throws java.io.IOException
JsonReaderIsetValue in class JsonReaderI<CompessorMapper>java.io.IOExceptionpublic void addValue(java.lang.Object current,
java.lang.Object value)
throws java.io.IOException
JsonReaderIaddValue in class JsonReaderI<CompessorMapper>java.io.IOExceptionprivate void addComma()
throws java.io.IOException
java.io.IOExceptionprivate void writeValue(java.lang.Object value)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object createObject()
JsonReaderIcreateObject in class JsonReaderI<CompessorMapper>public java.lang.Object createArray()
JsonReaderIcreateArray in class JsonReaderI<CompessorMapper>public CompessorMapper convert(java.lang.Object current)
JsonReaderIconvert in class JsonReaderI<CompessorMapper>private void close(java.lang.Object obj)
throws java.io.IOException
java.io.IOExceptionprivate void open(java.lang.Object obj)
throws java.io.IOException
java.io.IOException