/** * Serialize the encapsulated Document into the Writer * * @param writer writer * * @throws IOException When serialization fails */ public void serialize(Writer writer) throws IOException { output.setCharacterStream(writer); serialize(); }
/** * Serialize the encapsulated Document into the OutputStream * * @param os output stream * * @throws IOException When serialization fails */ public void serialize(OutputStream os) throws IOException { output.setByteStream(os); serialize(); }