Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
how to get files with a specific path for a jar file
Joined: Aug 25, 2003
Aug 22, 2005 03:42:00
I want to process a jar file in a
jf = new
Then in order to find all the files with path "com/def/". How to do it?
Currently what I do is very tedious especially when the jar is big.
Enumeration en = jf.entries();
then process each element in enumeration and see whether it's belong to the path.
Is there any easier way that I can list all the files with same path?
Joined: Aug 10, 2005
Aug 22, 2005 06:33:00
Not yet. The only way I know is how you're doing it.
I agree. Here's the link:
subject: how to get files with a specific path for a jar file
jar file information
How to fetch information from a JAR file
Read contents of jar file given specific path
Reading images from a JAR file on build path
How to extract jar files into a folder using java code?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014