I have a list of files inside a dependency jar resources/files/file1.xml resources/files/file2.xml resources/files/file3.xml ...
I need to populate an object based on those files but I don't know the files names only the directory in that jar. I need to read all of files and there is relationship among those files.
now I tried two ways, neither is working
I can get an InputStream from that directory but how to put InputStream back to files?
I also try to add a method in original dependency jar : Object getData()-- this just directly get files there. Code is working in that dependency jar project. But once it is called as a dependency jar, it can't find files.
Any suggestion?