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

?????

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

Zip MultiThreaded: ??????????

??????????? Paralleloptions, ????? ???????, ??? ????? ?????? ???? ??????????? ? ??????????? ?????? ??????????.

????????? parallelcompressinmemory ( getParallelCompressInmemory/ setParallelCpressInmemory) ????????? ?? ?????????, ??????? ?? ???????? ??? ???????????????. ??? ??? ????????:

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

???????

 1try (fileOutputStream ZipFile = new FileOutputStream ("archive.zip")) {
 2    ?????????? (Archive Archive = new Archive ()) {
 3        archive.createEntry ("First.bin", "Data1.bin");
 4        ...
 5        archive.createEntry ("last.bin", "datan.bin");
 6        Paralleloptions Paralleloptions = new Paralleloptions ();
 7        paralleloptions.setparallelcpressinmemory (parallelcompressionmode.always);
 8        ArchivesaveOptions Options = new ArchivesaveOptions ();
 9        Options.SetParalleLoptions (Paralleloptions);
10        archive.save (zipfile, ?????);
11    }
12} catch (ioException ex) {
13    System.out.println (Ex);
14}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.