code: public void writeManifest(final Manifest manifest) throws IOException {
          JarEntry entry = new JarEntry("META-INF/MANIFEST.MF");
          writeEntry(entry, new EntryWriter() {
              @Override
              public void write(OutputStream outputStream) throws IOException {
                  manifest.write(outputStream);
              }
          });
      }
docs: Write the specified manifest.
  
  @param manifest the manifest to write
  @throws IOException of the manifest cannot be written