How to Compress/Decompress tar.gz files in java

前端 未结 7 1083
粉色の甜心
粉色の甜心 2020-12-02 17:05

Can anyone show me the correct way to compress and decompress tar.gzip files in java i\'ve been searching but the most i can find is either zip or gzip(alone).

相关标签:
7条回答
  • 2020-12-02 17:29

    With TrueVFS extracting Tar.GZip archive is one-liner:

    new TFile("archive.tar.gz").cp_rp(new File("dest/folder"));
    

    But beware of dependencies issue.

    0 讨论(0)
提交回复
热议问题