public class DefaultSerializer extends java.lang.Object implements Serializer<java.lang.Object>
Serializer
implementation that writes an object to an output stream
using Java serialization.Constructor and Description |
---|
DefaultSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
serialize(java.lang.Object object,
java.io.OutputStream outputStream)
Writes the source object to an output stream using Java serialization.
|
public void serialize(java.lang.Object object, java.io.OutputStream outputStream) throws java.io.IOException
Serializable
.serialize
in interface Serializer<java.lang.Object>
object
- the object to serializeoutputStream
- the output streamjava.io.IOException
- in case of errors writing to the streamObjectOutputStream.writeObject(Object)