Skip to content

Instantly share code, notes, and snippets.

@andrask
Created June 10, 2013 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrask/5748920 to your computer and use it in GitHub Desktop.
Save andrask/5748920 to your computer and use it in GitHub Desktop.
import java.io.File;
import java.io.IOException;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipFile;
public class Something {
public static void main(String[] args) throws ZipException, IOException {
ZipFile zipFile = new ZipFile(new File(args[0]));
Enumeration<? extends ZipEntry> entries = zipFile.entries();
while (entries.hasMoreElements()) {
System.out.println(entries.nextElement());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment