Class DefaultSerializer
java.lang.Object
org.springframework.core.serializer.DefaultSerializer
- All Implemented Interfaces:
Serializer<Object>
A
Serializer
implementation that writes an object to an output stream
using Java serialization.- Since:
- 3.0.5
- Author:
- Gary Russell, Mark Fisher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(Object object, OutputStream outputStream) Writes the source object to an output stream using Java serialization.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.serializer.Serializer
serializeToByteArray
-
Constructor Details
-
DefaultSerializer
public DefaultSerializer()
-
-
Method Details
-
serialize
Writes the source object to an output stream using Java serialization. The source object must implementSerializable
.- Specified by:
serialize
in interfaceSerializer<Object>
- Parameters:
object
- the object to serializeoutputStream
- the output stream- Throws:
IOException
- in case of errors writing to the stream- See Also:
-