default void writeModel(File f, M model) throws IOException { try (FileOutputStream os = new FileOutputStream(f)) { writeModel(os, model); } }
default void writeModel(File f, M model) throws IOException { try (OutputStream os = IOUtil.asBufferedOutputStream(f)) { writeModel(os, model); } }