I then proceed to read the xml file from this newly created xmlString.
Now this doesn't work because of the multiple "!/" that appear on the final resulting URL giving me the following error message:
xml�library�location�is:�jar:file:/C:/current/lib/utilities.jar!/com/esp/textures/textures.jar!/library.xml JAR entry com/esp/textures/textures.jar!/library.xml not found in C:\current\lib\utilities.jar
Any ideas how I can read not only the library file (library.xml) but also the images contained within it?
Is the only way to extract the textures.jar file locally and then try and access it?
Here's an idea. Override/extend the File class with a class that will get its input from memory, say a byte array. Read the nested/contained jar file from the real jar file into the byte array. Then use the ZipFile constructor with your extended File class to process the jar file from memory.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com