XZ ???? ??

Contents
[ Hide Show ]

??

XZ ????? Linux?? ??????. LZMA2 ????? ?????. .NET API? Aspose.ZIP? ???? ?? ?? ?????? ??? ???????? XZ ????? ???? ??? ? ????.�Aspose.ZIP API? ??? ???? ??? ?? XzArchive ???? ?????. ? ???? ????? ?? ??? ???? ?? ??? ?????.

?? ??

?? ?? ????? XzArchive ????? ???? ??? ???? ??? ?????.

 1    using (FileStream xzFile = File.Open("data.bin.xz", FileMode.Create))
 2    {
 3        using (FileStream source = File.Open("data.bin", FileMode.Open, FileAccess.Read))
 4        {
 5            using (var archive = new XzArchive(Aspose.Zip.Xz.Settings.XzArchiveSettings.FastestSpeed))
 6            {
 7                archive.SetSource(source);
 8                archive.Save(xzFile);
 9            }
10        }
11    }

XZ ???? ??

??? ??? ?? ??? XZ ????? ?? ??? ?????.

1    using (var archive = new XzArchive("data.bin.xz"))
2    {
3        archive.Extract("data.bin");
4    }

??? ?? ?? ??

XZ ????? ???? CRC32, CRC64, SHA-256?? ??? ??? ??? ????? ??? ? ????. Aspose.Zip? XzCheckType.None, XzCheckType.Crc32, XzCheckType.Crc64 ? 3?? ???? ?????. ???? CRC32???.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.