?????????? ????? ?????????? ??????? tar.gz

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

????????

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

?????????, ??? ? ??? ?????????? ??????????? ??????, ????? ????????? ?????????? ???? ???????.

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

? ????????? ??????? ???? ???????????????, ??? ??????? ?????? ?? ?????????? ??????? Tar.gz ? ?????????? ????????? ?? ? ????? TAR. ?? ??????? ??? ? GZ ? ??????, ????????? ????? SaveGzippup.

 1String [] archivespaths = new String [] {"data/first.tar.gz", "data/second.tar.gz", "data/third.tar.gz"};
 2Tararchive [] Archives = ????? Tararchive [Archivespaths.length];
 3?????????? (Tararchive ?????????? = new tararchive ()) {
 4    ??? (int i = 0; i <archivespaths.length; i ++) {
 5        Tararchive a = tararchive.fromgzip (Archivespaths [i]);
 6        ????? [i] = a;
 7        ??? (?????????: a.getEntries ()) {
 8            MERGED.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.