Package org.datavec.api.io.serializers
Interface Serializer<T>
-
public interface Serializer<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the underlying output stream and clear up any resources.voidopen(OutputStream out)Prepare the serializer for writing.voidserialize(T t)Serializetto the underlying output stream.
-
-
-
Method Detail
-
open
void open(OutputStream out) throws IOException
Prepare the serializer for writing.
- Throws:
IOException
-
serialize
void serialize(T t) throws IOException
Serialize
tto the underlying output stream.- Throws:
IOException
-
close
void close() throws IOExceptionClose the underlying output stream and clear up any resources.
- Throws:
IOException
-
-