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

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


   
    public static void main(String[] args) throws IOException {
        File testFile = new File("test.dat");
        FileUtils.writeStringToFile(testFile, TEXT);

        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

TOP

Related Classes of org.apache.jackrabbit.vault.vlt.meta.xml.zip.UpdateableZipFile

Copyright © 2018 www.massapicom. 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.