public interface Serializer<T>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying output stream and clear up any resources.
|
void |
open(OutputStream out)
Prepare the serializer for writing.
|
void |
serialize(T t)
Serialize
t to the underlying output stream. |
void open(OutputStream out) throws IOException
Prepare the serializer for writing.
IOExceptionvoid serialize(T t) throws IOException
Serialize t to the underlying output stream.
IOExceptionvoid close()
throws IOException
Close the underlying output stream and clear up any resources.
IOExceptionCopyright © 2021. All rights reserved.