7Zアーカイブの平行LZMA2

Contents
[ Hide Show ]

概要

aspose.zip api 7-zipアーカイブを作成します。 その圧縮方法の1つは LZMA2で、いくつかのスレッドで圧縮できます。

lzma2 mutlithreaded圧縮

このサンプルは、7Zアーカイブを単一のエントリで構成し、4つのスレッドを使用して圧縮されます。

1Sevenziplzma2compressionsettings pressionsettings = new SevenZiplzma2Compressionsettings();
2compressionsettings.setCompressionThreads(4);
3Sevenzipentrysettings settings = new Sevenzipentrysettings(Compressionsettings);
4try(sevenziparchive archive = new SevenZiparchive(settings)){
5    archive.createentry( "first.bin"、​​ "data.bin");
6    archive.save( "result.7z");
7}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.

OSZAR »