I have a 3rd party jar that contains a number of xml files that i'd like to process. I don't know the name or number of xml files but i do know the folder where they are packaged within the jar.
URL url = this.class.getResource("/com/arantech/touchpoint/index");
System.out.println(url.toString());
this seems to return a valid file (folder) path
jar:file:/home/.m2/repository/com/abc/tp-common/5.2.0/tp-common-5.2.0.jar!/com/abc/tp/index
but when i attempt to list the files in the folder i always get a NullPointerException
File dir = new File(url.toString());
System.out.println(dir.exists());
System.out.println(dir.listFiles().length);
Any guidance?