public void saveAs ( final String filename , final ZipUTF8WriterBuilder builder ) throws IOException { try { final FileOutputStream out = new FileOutputStream ( filename ) ; final ZipUTF8Writer writer = builder . build ( out ) ; try { this . save ( writer ) ; } finally { writer . close ( ) ; } } catch ( final FileNotFoundException e ) { this . logger . log ( Level . SEVERE , "Can't open " + filename , e ) ; throw new IOException ( e ) ; } }
Save the document to filename .