public void writeXML ( OutputStream outputStream , String encoding , String indent , String lineSeparator ) throws IOException { XMLOutputter outputter = new XMLOutputter ( ) ; Format format = Format . getPrettyFormat ( ) ; format . setEncoding ( encoding ) ; format . setIndent ( indent ) ; format . setLineSeparator ( lineSeparator ) ; outputter . setFormat ( format ) ; outputter . output ( getDocument ( ) , outputStream ) ; }
Serializes the database to the output stream .