/** * By default, will delegate the writing to the specified Model. * @param model the Model to write * @param writer the Writer to write to * @throws IOException if a problem occurred */ @Override public void write(Model model, Writer writer) throws IOException { model.write(writer); }
/** * By default, will delegate the writing to the specified Model. * @param model the Model to write * @param out the OutputStream to write to * @throws IOException if a problem occurred */ @Override public void write(Model model, OutputStream out) throws IOException { model.write(out); }
/** * By default, will delegate the writing to the specified Model. * @param model the Model to write * @param out the OutputStream to write to * @throws IOException if a problem occurred */ @Override public void write(Model model, OutputStream out) throws IOException { model.write(out); }
/** * By default, will delegate the writing to the specified Model. * @param model the Model to write * @param writer the Writer to write to * @throws IOException if a problem occurred */ @Override public void write(Model model, Writer writer) throws IOException { model.write(writer); }
model.write(writer, OutputKey.PRETTY_PRINT); writer.flush();
model.write(writer, OutputKey.PRETTY_PRINT); writer.flush();