@Override public void save() throws IOException { if ( document != null ) { document.close(); } super.save(); }
@Override public void save() throws IOException { if ( writer != null ) { xhtml.save( writer ); } else { xhtml.save( out ); } super.save(); }
protected void doConvert( OdfDocument document, OutputStream out, Writer writer, T options ) throws ODFConverterException, IOException { ElementVisitorConverter visitor = null; visitor = createElementVisitorConverter( document, out, writer, options ); if ( visitor != null ) { try { document.getContentRoot().accept( visitor ); } catch ( Exception e ) { throw new ODFConverterException( e ); } visitor.save(); } }