spring-framework / org.springframework.core.serializer.support / SerializingConverter

SerializingConverter

open class SerializingConverter : Converter<Any, ByteArray>

A Converter that delegates to a org.springframework.core.serializer.Serializer to convert an object to a byte array.

Author
Gary Russell

Author
Mark Fisher

Since
3.0.5

Constructors

<init>

SerializingConverter()

Create a default SerializingConverter that uses standard Java serialization.

SerializingConverter(serializer: Serializer<Any>)

Create a SerializingConverter that delegates to the provided Serializer.

Functions

convert

open fun convert(source: Any): ByteArray

Serializes the source object and returns the byte array result.