?????? ? ???????? Z
Contents
[
Hide
Show
]?????
????????? - ?? ??????? ???????? Unix, ?? ???????? ????? ? ??????????? .Z. Aspose.zip ??? java API ???????? ????????? ?? ?????????? ?? ??????????? ???????? Z ? ????? ?????? ??? ???????????? ???? -???? ????? ?????? ?? ????? ???????.�Aspose.zip API ????? zarchive ????? ??? ?????? ? ?????? ????????. ??? ???? ????? ??????? ?????? ????????? ???????? ?? ???????.
?? ??????? IPLEMENTS LZC ???????? LZC, ?? ? ???????????? ????????? LZW.
???????? ????
????????? ??????? ???? ???????, ?? ???????? ???? ?? ????????? ?????????? Zarchive.
1????????? (fileInputStream outer = ????? FileInputStream ("alice29.txt")) {
2 ????????? (Zarchive Archive = new Zarchive ()) {
3 Archive.setsource (???????);
4 Archive.save ("alice29.txt.z");
5 }
6} ???? (IOException ex) {
7}????????? z ?????
????????? ??????? ???? ???????, ?? ???????? ????? Z.
1????????? (Zarchive Archive = New Zarchive ("data.bin.z")) {
2 Archive.extract ("data.bin");
3}???????? ?? ??????
????????? ??????? ???? ???????, ?? ???????? ??? ??????.
1Bytearrayoutputstream bs = ????? bytearrayoutputstream ();
2????????? (fileInputStream outer = ????? FileInputStream ("alice29.txt")) {
3 ????????? (Zarchive Archive = new Zarchive ()) {
4 Archive.setsource (???????);
5 Archive.save (BS);
6 }
7} ???? (IOException ex) {
8}