Is there any external jar that can be used to unzip files using java.Some of the codes to unzip a file using java available in the internet showing inconsistent behavior for zip files of type .zip /.rar.Is there any good java code to unzip a zip file.
Share
The RAR format is proprietary: http://en.wikipedia.org/wiki/RAR how ever a simple google search returns this site: http://www.catacombae.org/jlrarx.html#rarlib
Also for .zip files, Java has an InflaterInputStream http://download.oracle.com/javase/1,5.0/docs/api/java/util/zip/InflaterInputStream.html
It also has specific subclasses for GZIP and ZIP files.
There are other compression methods as well: http://www.7-zip.org/sdk.html
To specifically answer your question: Yes there is good code to unzip a zip file. The api is linked above http://download.oracle.com/javase/1,5.0/docs/api/java/util/zip/InflaterInputStream.html
If you have any problems when writing your code post a more specific question.