public class

SerializingConverter

extends Object
implements Converter<S, T>
java.lang.Object
   ↳ org.springframework.core.serializer.support.SerializingConverter

Class Overview

A {@Link Converter} that delegates to a Serializer to convert an object to a byte array.

Summary

Public Constructors
SerializingConverter()
Create a default SerializingConverter that uses standard Java serialization.
SerializingConverter(Serializer<Object> serializer)
Create a SerializingConverter that delegates to the provided Serializer
Public Methods
byte[] convert(Object source)
Serializes the source object and returns the byte array result.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.core.convert.converter.Converter

Public Constructors

public SerializingConverter ()

Also: SpringCore

Create a default SerializingConverter that uses standard Java serialization.

public SerializingConverter (Serializer<Object> serializer)

Also: SpringCore

Create a SerializingConverter that delegates to the provided Serializer

Public Methods

public byte[] convert (Object source)

Also: SpringCore

Serializes the source object and returns the byte array result.