The following demonstrates reading from a ZIP file, listing all the files in the zip and displaying the contents of the first file in the zip. JAR file reading is similar, just with different classes and having a manifest.
If you want to pack and unpack what you do with WinZip with Java, you can cpmfortably do it with java.util.jar and java.util.zip packages, or with Jar.exe. As jar and zip use the sasme algorithm for compression, there will be no difference between .jar and .zip files.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database