I�m using the java.util.zip package to extract zip-files. I found a lot of documentation and descriptions ... the extraction works. Unfortunately this is only the case for files in the main directory of the zip-file, subdirectories cannot be extracted ... ... or maybe someone has an idea, that would be great
/** * ----------------------------------------------------------------------------- * Used to provide an example of extracting the contents (files) from a zip * file. * ----------------------------------------------------------------------------- */
// Enumerate each entry for (Enumeration entries = zf.entries(); entries.hasMoreElements() {
// Get the entry and its name ZipEntry zipEntry = (ZipEntry)entries.nextElement(); String zipEntryName = zipEntry.getName(); System.out.println(" inflating: " + zipEntryName);