![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e454. Listing the Contents of a ZIP Filetry { // Open the ZIP file ZipFile zf = new ZipFile("filename.zip"); // Enumerate each entry for (Enumeration entries = zf.entries(); entries.hasMoreElements();) { // Get the entry name String zipEntryName = ((ZipEntry)entries.nextElement()).getName(); } } catch (IOException e) { }
e455. Retrieving a Compressed File from a ZIP File
© 2002 Addison-Wesley. |