Code example for Manifest

Methods: write

0
     */ 
    private void writeManifest(final Manifest manifest) throws IOException {
        FileOutputStream output = null;
        try { 
            output = new FileOutputStream(destFile);
            manifest.write(output);
            output.flush();
        } finally { 
            if (null != output) {
                try { 
                    output.close();
                } catch (IOException e) {
                    // ignore 
                } 
            } 
        } 
    } 
 
    /** 
     * Append specified extensions to specified attributes. 
     * Use the extensionKey to list the extensions, usually "Extension-List:"