M - the type of objects implementing classes can serializepublic interface ModelSerializer<M>
| Modifier and Type | Method and Description |
|---|---|
default void |
writeModel(File f,
M model)
Writes the model to the given file.
|
void |
writeModel(OutputStream os,
M model)
Writes the model to the given output stream.
|
void writeModel(OutputStream os, M model) throws IOException
Note: the output stream will not be closed.
os - the output stream to write tomodel - the model to writeIOException - when writing to the output stream fails.default void writeModel(File f, M model) throws IOException
f - the file to write tomodel - the model to writeIOException - when writing to the output stream fails.Copyright © 2020. All rights reserved.