I am looking for a way to get a list of all resource names from a given classpath directory, something like a method List
Used a combination of Rob's response.
final String resourceDir = "resourceDirectory/";
List files = IOUtils.readLines(Thread.currentThread().getClass().getClassLoader().getResourceAsStream(resourceDir), Charsets.UTF_8);
for(String f : files){
String data= IOUtils.toString(Thread.currentThread().getClass().getClassLoader().getResourceAsStream(resourceDir + f));
....process data
}