is it possible to get a File or URI object for a file inside an archive with Java?
(zip or jar archive)
Thanks Hemeroc.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
jar:protocol is a way to build a URI to a resource in a JAR archive:See the API docs for JarURLConnection: http://java.sun.com/javase/6/docs/api/java/net/JarURLConnection.html
Between the
jar:and!/can be any URL, including afile:URL.