Code example for Manifest

Methods: write

0
 
    public void writeManifest(Manifest manifest) throws IOException
    { 
 
        FileOutputStream stream = new FileOutputStream(manifestFile);
        manifest.write(stream);
        stream.close();
    } 
 
    public Manifest createOrFindManifest() throws IOException
    { 
 
        Manifest manifest = new Manifest();
 
        //read existing manifest 
//        if (manifestFile.exists()) 
//        { 
//                FileInputStream is = new FileInputStream(manifestFile); 
//                manifest = new Manifest(is); 
//                is.close(); 
//        }