Package org.apache.jackrabbit.vault.vlt.meta.xml.zip

Examples of org.apache.jackrabbit.vault.vlt.meta.xml.zip.UpdateableZipFile.update()


        UpdateableZipFile testZip = new UpdateableZipFile(new File("test.zip"));
        for (int i=0; i<100; i++) {
            String name = testFile.getName() + i;
            System.out.println("adding " + name);
            testZip.update(name, new FileInputStream(testFile));
            testZip.sync();
        }
        testZip.update("test.dat50", new FileInputStream(testFile));
        testZip.delete("test.dat1");
        testZip.close();
View Full Code Here


            String name = testFile.getName() + i;
            System.out.println("adding " + name);
            testZip.update(name, new FileInputStream(testFile));
            testZip.sync();
        }
        testZip.update("test.dat50", new FileInputStream(testFile));
        testZip.delete("test.dat1");
        testZip.close();
    }

    public static void putFile(File zip, File file, String name) throws IOException {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.