code: 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);
          }
      }
docs: Save the document to filename.
  @param filename the name of the destination file
  @param builder  a builder for the ZipOutputStream and the Writer (buffers,
  level, ...)
  @throws IOException if the file was not saved