This code is for reading deeply nested classpath resources. It can walk directories and find resources inside jar files. Keep in mind that this is just prototype code. I was just figuring out how I was going to do something. My intention is to throw this away, and then implement it for real. There is a full code walkthrough at the end. This prototype code for reading deeply nested classpath resources. It can walk directories and find resources. It opens up the jar files. Scans directories in the jar files looking for resources. If you wanted to read all files that started with foo and ended with .txt, under /foo/bar/resources/ everywhere on the classpath sort of thing. It would do this not just for the first jar file, but for every jar file. (See Java docs of code example for more details).
Oct 14, 13