public class OrgJsonValueSerializer extends ValueSerializerAdapter<OrgJsonValueSerializer.OrgJsonOutput>
Modifier and Type | Class and Description |
---|---|
static class |
OrgJsonValueSerializer.OrgJsonOutput
Helper to pass around the Writer alongside the JSONWriter so we can flush it onSerializationEnd.
|
ValueSerializerAdapter.ComplexSerializer<T,OutputType>
ValueSerializer.Options
Constructor and Description |
---|
OrgJsonValueSerializer() |
Modifier and Type | Method and Description |
---|---|
protected OrgJsonValueSerializer.OrgJsonOutput |
adaptOutput(OutputStream output) |
protected void |
onArrayEnd(OrgJsonValueSerializer.OrgJsonOutput output) |
protected void |
onArrayStart(OrgJsonValueSerializer.OrgJsonOutput output) |
protected void |
onFieldStart(OrgJsonValueSerializer.OrgJsonOutput output,
String fieldName) |
protected void |
onObjectEnd(OrgJsonValueSerializer.OrgJsonOutput output) |
protected void |
onObjectStart(OrgJsonValueSerializer.OrgJsonOutput output) |
protected void |
onSerializationEnd(Object object,
OrgJsonValueSerializer.OrgJsonOutput output) |
protected void |
onValue(OrgJsonValueSerializer.OrgJsonOutput output,
Object value) |
onFieldEnd, onSerializationStart, onValueEnd, onValueStart, registerComplexSerializer, registerSerializer, serialize, serialize, serialize, serialize, serialize, serialize, serialize, serialize, serialize
protected OrgJsonValueSerializer.OrgJsonOutput adaptOutput(OutputStream output) throws Exception
adaptOutput
in class ValueSerializerAdapter<OrgJsonValueSerializer.OrgJsonOutput>
Exception
protected void onSerializationEnd(Object object, OrgJsonValueSerializer.OrgJsonOutput output) throws Exception
onSerializationEnd
in class ValueSerializerAdapter<OrgJsonValueSerializer.OrgJsonOutput>
Exception
protected void onArrayStart(OrgJsonValueSerializer.OrgJsonOutput output) throws Exception
onArrayStart
in class ValueSerializerAdapter<OrgJsonValueSerializer.OrgJsonOutput>
Exception
protected void onArrayEnd(OrgJsonValueSerializer.OrgJsonOutput output) throws Exception
onArrayEnd
in class ValueSerializerAdapter<OrgJsonValueSerializer.OrgJsonOutput>
Exception
protected void onObjectStart(OrgJsonValueSerializer.OrgJsonOutput output) throws Exception
onObjectStart
in class ValueSerializerAdapter<OrgJsonValueSerializer.OrgJsonOutput>
Exception
protected void onObjectEnd(OrgJsonValueSerializer.OrgJsonOutput output) throws Exception
onObjectEnd
in class ValueSerializerAdapter<OrgJsonValueSerializer.OrgJsonOutput>
Exception
protected void onFieldStart(OrgJsonValueSerializer.OrgJsonOutput output, String fieldName) throws Exception
onFieldStart
in class ValueSerializerAdapter<OrgJsonValueSerializer.OrgJsonOutput>
Exception
protected void onValue(OrgJsonValueSerializer.OrgJsonOutput output, Object value) throws Exception
onValue
in class ValueSerializerAdapter<OrgJsonValueSerializer.OrgJsonOutput>
Exception