Query a package for current resource list?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roger

    Query a package for current resource list?

    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
Working...