M- the type of objects implementing classes can serialize
public interface ModelSerializer<M>
void writeModel(OutputStream os, M model) throws IOException
Note: the output stream will not be closed.
os- the output stream to write to
model- the model to write
IOException- when writing to the output stream fails.
Copyright © 2020. All rights reserved.