@Override public void write(OutputStream out) throws IOException { Writer writer = new OutputStreamWriter(out, "UTF-8"); OutputFormat outputFormat = getOutputFormat(); if (outputFormat != null) { new XMLWriter(writer, outputFormat).write(content); } else { new XMLWriter(writer).write(content); } writer.flush(); } }
@Override public void write(OutputStream out) throws IOException { Writer writer = new OutputStreamWriter(out, "UTF-8"); OutputFormat outputFormat = getOutputFormat(); if (outputFormat != null) { new XMLWriter(writer, outputFormat).write(content); } else { new XMLWriter(writer).write(content); } writer.flush(); } }