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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidserialize(Object object, OutputStream outputStream) Writes the source object to an output stream using Java serialization.Methods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SerializerserializeToByteArray
- 
Constructor Details- 
DefaultSerializerpublic DefaultSerializer()
 
- 
- 
Method Details- 
serializeWrites the source object to an output stream using Java serialization. The source object must implementSerializable.- Specified by:
- serializein interface- Serializer<Object>
- Parameters:
- object- the object to serialize
- outputStream- the output stream
- Throws:
- IOException- in case of errors writing to the stream
- See Also:
 
 
-