I need to extract all type of archived file like .zip, .rar using java.
Asked
Active
Viewed 1,045 times
-1
-
Sure, but RAR file is not a ZIP file. You can tell the difference by the different file extension. – Kayaman May 23 '18 at 10:20
-
okay, you are right. It's possible to unrar the .rar files in java – Naveen May 23 '18 at 10:23
1 Answers
0
You can extract *.zip, *.jar
and *.gz
using java inbuilt library called GZIPInputStream
.
If you want to extract .rar
then you have to use junrar
library

Sasikumar Murugesan
- 4,412
- 10
- 51
- 74