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 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)
Serializet
to 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
t
to the underlying output stream.- Throws:
IOException
-
close
void close() throws IOException
Close the underlying output stream and clear up any resources.
- Throws:
IOException
-
-