?????? ? XZ Archives ? Java

?????

Xz Archive ????????????? ? Linux. ?? ?????????? ???????? LZMA2. Aspose.zip ??? Java API ????????? ???????? ? ????????? ? ??????????? XZ -???????? ? ????? ??????????? ??? ????????????? ????? -???? ?????? ????????? ??????????.�Aspose.zip API ????????????? xzarchive ????? ??? ?????? ? ?????? ????????. ???? ????? ????????????? ???????? ?????? ??? ?????????? ???????? ? ???????.

?????? ?????

? ????????? ??????? ???? ????????, ??? ????? ???? ? ?????????????? ?????????? xzarchive.

1try (fileOutputStream xzFile = new FileOutputStream ("data.bin.xz")) {
2    try (fileInputStream Source = new FileInputStream ("data.bin")) {
3        try (xzarchive archive = new xzarchive (xzarchivesettings.getfastestspeed ())) {
4            archive.setsource (????????);
5            Archive.save (xzfile);
6        }
7    }
8} catch (ioException ex) {
9}

??????? XZ ?????

? ????????? ??????? ??????? ???? ????????, ??? ??????? XZ -?????.

1try (xzarchive archive = new xzarchive ("data.bin.xz")) {
2    archive.extract ("data.bin");
3}

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

XZ Archive ????????? ???????? ?????? ??????????? ?????? ?? CRC32, CRC64, SHA-256 ??? ???????? ???. Aspose.zip ????????? 3 ????? ???????: xzchecktype.none, xchecktype.crc32, xzchecktype.crc64. ?? ????????? CRC32.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.