dcsimg
How to get a list of file names under a!_NEWLINE_!directory in a jar file?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Paul_Chuang
Posted On:   Friday, April 20, 2001 01:25 PM

I have a directory called images in the
jar file. I would like to read all the
image files under the images directory
in my application. The file names are
not known when the class files are deployed.

Re: How to get a list of file names under a!_NEWLINE_!directory in a jar file?

Posted By:   Tim_Rohaly  
Posted On:   Friday, April 20, 2001 08:12 PM

Create an instance of JarFile then get the enumeration
of the jar using the entries() method. Iterate through
the entries and for each entry, invoke the getName() method.
About | Sitemap | Contact