public class DefaultSerializer extends Object implements Serializer<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(Object object,
OutputStream outputStream)
Writes the source object to an output stream using Java serialization.
|
public void serialize(Object object, OutputStream outputStream) throws IOException
Serializable
.serialize
in interface Serializer<Object>
object
- the object to serializeoutputStream
- the output streamIOException
- in case of errors writing to the streamObjectOutputStream.writeObject(Object)