A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
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.
Have you checked out
subject: how to get files with a specific path for a jar file
How to extract jar files into a folder using java code?
jar file information
Read contents of jar file given specific path
Reading images from a JAR file on build path
How to fetch information from a JAR file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015