T
- the supported object typepublic abstract class JsonObjectSerializer<T>
extends com.fasterxml.jackson.databind.JsonSerializer<T>
JsonSerializer
implementations that serialize objects.JsonObjectDeserializer
Constructor and Description |
---|
JsonObjectSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
serialize(T value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
protected abstract void |
serializeObject(T value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider)
Serialize JSON content into the value type this serializer handles.
|
public final void serialize(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws java.io.IOException
serialize
in class com.fasterxml.jackson.databind.JsonSerializer<T>
java.io.IOException
protected abstract void serializeObject(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws java.io.IOException
value
- the source valuejgen
- the JSON generatorprovider
- the serializer providerjava.io.IOException
- on error