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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(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, waitMethods 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:
serializein interfaceSerializer<Object>- Parameters:
object- the object to serializeoutputStream- the output stream- Throws:
IOException- in case of errors writing to the stream- See Also:
-