Reputation: 563
How should I search and retrieve some x.txt file from a given JAR in Java? I guess, first I need to unzip it...
Upvotes: 0
Views: 389
Reputation: 28761
Use a JarInputStream to open it, iterate over it using getNextJarEntry and compare names using ZipEntry.getName()
Upvotes: 3