?????????? ????? ?????????? ??????? Zip

Contents
[ Hide Show ]

???? ?? ?????? ?????????? ???????????? ?????????? ??????? Zip ? ????????? ?????, ?????????? ??? ??????.

????????

Aspose.zip API ????????????? ????? ????? ??? ?????????? ? ??????????? ???????? ???????.�?? ????? ??????? ?????? ? ??????, ?? ???????? ??? ? ????????????? ?????????, ? ????? ?? ??????? ? ????? Zip.

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

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

????????? ?????? ???? ?????????????, ??? ??????? ?????? ?? ?????????? ??????? Zip ? ?????????? ????????? ?? ? ????? Zip.

 1String [] archivespaths = new String [] {"data/first.zip", "data/second.zip"};
 2????? [] ????? = ????? ????? [archivespaths.length];
 3?????????? (Archive Mersed = new Archive ()) {
 4    ??? (int i = 0; i <archivespaths.length; i ++) {
 5        ????? A = ????? ????? (Archivespaths [i]);
 6        ????? [i] = a;
 7        ??? (???????????? ??????: a.getEntries ()) {
 8            MERGED.CreateEntry (entry.getName (), entry.open ());
 9        }
10    }
11
12    merged.save("merged.zip");
13
14    for (int i = 0; i < archivesPaths.length; i++) {
15        archives[i].close();
16    }
17}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.