public class DefaultSerializer extends Object implements Serializer<Object>
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 stream