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 IOException
serialize
in class com.fasterxml.jackson.databind.JsonSerializer<T>
IOException
protected abstract void serializeObject(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
value
- the source valuejgen
- the JSON generatorprovider
- the serializer providerIOException
- on errorCopyright © 2019 Pivotal Software, Inc.. All rights reserved.