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();
}