T
- The bean type@Internal public final class SimpleObjectSerializer<T> extends java.lang.Object implements Serializer<T>
Serializer.EncoderContext
Constructor and Description |
---|
SimpleObjectSerializer(io.micronaut.serde.support.serializers.SerBean<java.lang.Object> serBean) |
Modifier and Type | Method and Description |
---|---|
void |
serialize(Encoder encoder,
Serializer.EncoderContext context,
io.micronaut.core.type.Argument<? extends T> type,
T value)
Serializes the given value using the passed
Encoder . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSpecific, isAbsent, isEmpty
public SimpleObjectSerializer(io.micronaut.serde.support.serializers.SerBean<java.lang.Object> serBean)
public void serialize(Encoder encoder, Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends T> type, T value) throws java.io.IOException
Serializer
Encoder
.serialize
in interface Serializer<T>
encoder
- The encoder to usecontext
- The encoder context, never null
type
- Models the generic type of the valuevalue
- The value, can be null
java.io.IOException
- If an error occurs during serialization