I have been unable to find this on SO or on google in a comprehensive format.
I am trying to extract a compressed folder (.zip, will be packed into the .jar until I can get this set up) into a directory (found under %appdata%).
What are the classes and methods I would need to do this? I am looking at zipFile and FileWriter to do this, but I don’t fully understand how to use the two classes together.
Is there any way to do this? and if so, are there any better (simpler/faster) ways to do this than with zipFile and fileWriter? I am trying to keep file size down as much as possible, without sacrificing efficiency.
If you are using
JDK 7tryFileSystems. Unzipping is very easy something like