ZIP? 7z? ?????

Contents
[ Hide Show ]

Zip Archive? 7Z? ?????? ??? ?????.

aspose.zip? ?? LZMA, LZMA2, PPMD ??? BZIP2 ?? ?????? 7Z ????? ?? ? ? ????.

??

aspose.zip api? 7Z ????? ?? ???? ?? Sevenziparchive ???? ?????. �?? ???? ???? ?? ???? ?? ??? ???? 7Z ????? ?? ??? ? ????.

?? ??? ??? ????? ??? ?? ???? ??? ??????.

?? ??

?? ?? ??? Zip Archive?? ??? ???? ?? 7Z ????? ?? ??? ?????. 7Z ??? ?? ????? ?? ????? ????? ???? LZMA2 ???? ?????. ???? ? ??? ?? ???. ??? ?? ??? ?? ??? ?? ?????.

 1try (???? ?? = ? ???? ( "source.zip")) {
 2    try (Sevenziparchive Archive = new Sevenziparchive (New SevenzipentRySettings (New Sevenziplzma2compressionSettings ())) {
 3        for (ArchiveEntry ?? : source.getentries ()) {
 4            if (! enther.isdirectory ()) {
 5                try (bytearrayoutputStream out = new BytearRayoutputStream ()) {
 6                    Entrystract (out);
 7                    try (bytearrayinputstream in = new BytearrayinputStream (out.tobytearray ())) {
 8                        archive.createentry (entry.getname (), in);
 9                    }
10                }
11            }
12        }
13        Archive.save ( "result.7z");
14    }
15} catch (ioException ex) {
16}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.