org.springframework.core.serializer.Serializer<T> |
Known Indirect Subclasses
DefaultSerializer |
Serializer that writes an object to an output stream using Java Serialization. |
|
Class Overview
A strategy interface for streaming an object to an OutputStream.
Summary
Public Methods |
abstract
void
|
serialize(T object, OutputStream outputStream)
Write an object of type T to the given OutputStream.
|
Public Methods
public
abstract
void
serialize
(T object, OutputStream outputStream)
Write an object of type T to the given OutputStream.
Note: Implementations should not close the given OutputStream
(or any decorators of that OutputStream) but rather leave this up
to the caller.
Parameters
object
| the object to serialize |
outputStream
| the output stream |