How do I enumerate the content of a zipped folder in Java?

Posted by ripper234 on Stack Overflow See other posts from Stack Overflow or by ripper234
Published on 2010-05-12T13:55:14Z Indexed on 2010/05/12 14:04 UTC
Read the original article Hit count: 110

Filed under:
|
ZipeFile file = new ZipFile(filename);
ZipEntry folder = this.file.getEntry("some/path/in/zip/");
if (folder == null || !folder.isDirectory())
  throw new Exception();

// now, how do I enumerate the contents of the zipped folder?

© Stack Overflow or respective owner

Related posts about zip

Related posts about java