By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,369 Members | 966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,369 IT Pros & Developers. It's quick & easy.

Query a package for current resource list?

P: n/a
Is there a way to query a package for its current list of resources?
I know about class.getResourceAsStream() etc to get a named resource.
But what if I want to find out what resources are there?

What I do now is have a class which loads some xml files into DOMs. I
have a list of them in the class and using getResourceAsStream I read
all the xml files one by one into its DOM.

If I have to add an XML file I also have to modify the class. Sometime
soon I am going to forget to do the modify.

Thanks for your help
Roger
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.