?????? ? z -????????

?????

Compress - ??? ??????? Shell Unix, ???????????? ????? ? ??????????? .z. Aspose.zip ??? Java API ????????? ???????? ? ????????? ? ??????????? z -???????? ? ????? ??????????? ??? ????????????? ????? -???? ?????? ????????? ??????????.�Aspose.zip API ????????????? Zarchive ????? ??? ?????? ? ?????? ????????. ???? ????? ????????????? ???????? ?????? ??? ?????????? ???????? ? ???????.

???? ????????? ???????? LZC, ??????? ???????? ???????????? ????????? LZW.

?????? ?????

? ????????? ??????? ???? ????????, ??? ????? ???? ? ??????? Zarchive Encement.

1try (fileInputStream Source = new FileInputStream ("alice29.txt")) {
2    ?????????? (Zarchive Archive = new Zarchive ()) {
3        archive.setsource (????????);
4        archive.save ("alice29.txt.z");
5    }
6} catch (ioException ex) {
7}

open z ?????

? ????????? ??????? ???? ????????, ??? ??????? z -?????.

1Try (Zarchive Archive = new Zarchive ("data.bin.z")) {
2    archive.extract ("data.bin");
3}

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

? ????????? ??????? ???? ????????????, ??? ????????? ? ??????.

1BytearrayOutputStream BS = ????? BytearRayOutputStream ();
2try (fileInputStream Source = new FileInputStream ("alice29.txt")) {
3    ?????????? (Zarchive Archive = new Zarchive ()) {
4        archive.setsource (????????);
5        Archive.save (BS);
6    }
7} catch (ioException ex) {
8}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.