Created
January 20, 2015 09:18
-
-
Save f2prateek/c89ccdacdf58309617d8 to your computer and use it in GitHub Desktop.
Read classes in a Zipfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
ZipFile zipFile = new ZipFile(jarFile); | |
for (Enumeration<? extends ZipEntry> entries = zipFile.entries(); | |
entries.hasMoreElements(); ) { | |
String name = entries.nextElement().getName(); | |
System.out.println("entry: " + name); | |
} | |
} catch (IOException e) { | |
throw new RuntimeException(e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment