Compressing & Decompressing 7z file in java

后端 未结 3 1229
清酒与你
清酒与你 2021-01-01 16:12

I want to compress a file into zip, rar and 7z format using java code. Also I want to decompress these files at a specified location. Can anyone please tell me how to compr

3条回答
  •  清酒与你
    2021-01-01 16:25

    SevenZipBinding is great for decompression, it even detects format automaticaly. Problem is it can't compress. You can create zip archives using ZIP4J. It however offers only plain zip. LZMA apparently can compress single files into 7z archives, but I haven't tried it yet.

提交回复
热议问题