Is there a way to query a package for its current list of resources?
I know about class.getResour ceAsStream() 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 getResourceAsSt ream 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
I know about class.getResour ceAsStream() 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 getResourceAsSt ream 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