Top Description Constructors Methods
org.springframework.core.serializer

public Class DefaultSerializer

extends Object
implements Serializer<Object>
Class Inheritance
All Implemented Interfaces
org.springframework.core.serializer.Serializer
Imports
java.io.IOException, .ObjectOutputStream, .OutputStream, .Serializable

A Serializer implementation that writes an object to an output stream using Java serialization.
Authors
Gary Russell, Mark Fisher
Since
3.0.5

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
serialize(Object
the object to serialize
object
,
OutputStream
the output stream
outputStream
)

Implements org.springframework.core.serializer.Serializer.serialize.

Writes the source object to an output stream using Java serialization.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultSerializerback to summary
public DefaultSerializer()

Method Detail

serializeback to summary
public void serialize(Object object, OutputStream outputStream) throws IOException

Implements org.springframework.core.serializer.Serializer.serialize.

Writes the source object to an output stream using Java serialization. The source object must implement Serializable.

Parameters
object:Object

Doc from org.springframework.core.serializer.Serializer.serialize.

the object to serialize

outputStream:OutputStream

Doc from org.springframework.core.serializer.Serializer.serialize.

the output stream

Annotations
@Override
Exceptions
IOException:

Doc from org.springframework.core.serializer.Serializer.serialize.

in case of errors writing to the stream

See Also
ObjectOutputStream#writeObject(Object)