??'??????? ???? -??? ????????? ??????? TAR.GZ

???? ?? ?????? ???????? ???????? ????????? ??????? TAR.GZ ? ????????? ?????, ?????????? ?? ??????.

????

Aspose.zip API ????? Tararchive ????? ??? ????????? ?? ????????? ??????? TAR, ? ?????????? ??? ??? ?????.�?? ?????? ????????? ????? ?? ???�???, ?? ?????????? ???? ? ?????????? ??????? ?? ???????? ???? ?????? ?? ????????????? ?????? ??????.

?????????????, ?? ? ??? ? ???????? ?????????? ???�???, ??? ???????? ????? ???? ???????.

?????????? ?????

????????? ??????? ???? ??????????, ?? ?????????? ?????? ? ????????? ??????? TAR.GZ ? ??????? ????????? ???? ?? ?????? TAR. ?? ????????? ???? ?? GZ ? ???’???, ?????????????? ????? savegzipped.

 1String [] archivespaths = new String [] {"data/first.tar.gz", "data/second.tar.gz", "data/tritle.tar.gz"};
 2Tararchive [] ?????? = ????? ???????? [archivespaths.length];
 3????????? (tararchive ??'??????? = ????? tararchive ()) {
 4    for (int i = 0; i <archivespaths.length; i ++) {
 5        Tararchive a = tararchive.fromgzip (?????? [i]);
 6        ?????? [i] = a;
 7        for (tarentry ?????: a.getentries ()) {
 8            ??'???????.createEntry (entry.getName (), entry.open ());
 9        }
10    }
11
12    merged.saveGzipped("merged.tar.gz");
13
14    for (int i = 0; i < archivesPaths.length; i++) {
15        archives[i].close();
16    }
17}

???????? ?????? ?? ????? ???????

?? ?????? ??????????????? ??? ????? ?????? ??? ????????? TAR.LZ, TAR.XZ.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.