zip??????????

Contents
[ Hide Show ]

??

Aspose.Zip API??ZIP???????????????????�?????????????????????????????????????????????????????

zip???????:??

Paralleloptions???????????CPU??????????????????????????

parallecompressinmemory( getParallelcompressinmemory/ SetParallecompressinmemory)???????????????????????? ???3?????????????

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

????

 1try(fileoutputStream zipfile = new fileoutputStream( "archive.zip")){
 2    try(archive archive = new archive()){
 3        archive.createentry( "first.bin"??? "data1.bin");
 4        ...
 5        archive.createentry( "last.bin"??? "datan.bin");
 6        Paralleloptions parlalEloptions = new Paralleloptions();
 7        paralleloptions.setParallecompressinmemory(parallecompressionMode.always);
 8        ArchivesAveOptions options = new archivesaveoptions();
 9        options.setParalleloptions(Paralleloptions);
10        archive.save(zipfile?options);
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.