Interface ModelSerializer<M>

    • Method Detail

      • writeModel

        void writeModel​(OutputStream os,
                        M model)
                 throws IOException
        Writes the model to the given output stream.

        Note: the output stream will not be closed.

        Parameters:
        os - the output stream to write to
        model - the model to write
        Throws:
        IOException - when writing to the output stream fails.
      • writeModel

        default void writeModel​(File f,
                                M model)
                         throws IOException
        Writes the model to the given file.
        Parameters:
        f - the file to write to
        model - the model to write
        Throws:
        IOException - when writing to the output stream fails.