title: How to walk through Java class resources?
body: <p>I know we can do something like this:</p>
  
  <pre><code>Class.class.getResourceAsStream("/com/youcompany/yourapp/module/someresource.conf")
  </code></pre>
  
  <p>to read the files that are packaged within our jar file.</p>
  
  <p>I have googled it a lot and I am surely not using the proper terms; what I want to do is to list the available resources, something like this:</p>
  
  <pre><code>Class.class.listResources("/com/yourcompany/yourapp")
  </code></pre>
  
  <p>That should return a list of resources that are inside the package <code>com.yourcompany.yourapp.*</code></p>
  
  <p>Is that possible? Any ideas on how to do it in case it can't be done as easily as I showed?</p>
  
  <p>Note: I know it is possible to know where your jar is and then open it and inspect its contents to achieve it. But, I can't do it in the environment I am working in now.</p>