????? ?? ????????????? Java

Aspose.zip ??? Java API ???????? ????????????? ?? ?????????? ?? ??????????? ???????? ? ????? ?????? ??? ???????????? ???? -???? ????? ????. ???? ???????? ?????????? ???????? ????? ???????? ???????? Zip.

?? ?????? Descibes ????????????? ???? ? ???????? zip. Aspose.zip ??????????? ?????? ???????? ????????, ???? ???????????? ???.

??????? ??????? API

Aspose.zip API ?????????????? ???????????????? ??????? ???????? ? ?????? ?? ????????. ????? (IES) ????? ??????, ??????????, ? ????? ???????? ? ??????. API ?????? ???? ????????? ??? ?????? ? ??????? ?? ???? ????????. ??? ?????? ??? ???????? ??? ????? ????? ?? ??????, ?? ?????????? API ?? ?? ????????????.

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

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

????? ???? ???? ????????? ?? ????????? ????? ??????, ???? ?????????? API. ???????? ????? ????? ???????? ?? ????????? ????? ?????, ?? ???????? ? ?????????? ?????? ????.

1????? ????? = ????? ????? ();

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

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

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

1????? ????? = ????? ????? (
2    ???? ArchiveEntrySettings (
3        ???? ??????????????? (CompressionMethod.Store), ???? AesecryptionSettings ("P@s $", ??????????????.aes256)));

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

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

1Archive.save (OutputStream, SaveOptions)
2Archive.Save (FilePath, SaveOptions)

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

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

1FileInputStream Zipfilestream = ????? FileInputStream ("archive.zip");
2????? ????? = ????? ????? (zipfilestream);
???
1????? ????? = ????? ????? ("myarchive.zip");

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

????????? ??????? ?????? ????? ?????????, ???????? ArchiveLoadoptions

1????????? ArchiveLoadoptions = ???? ??????????????? ();
2options.setDecryptionPassword ("p@s $");
3????? ????? = ????? ????? (Sourcestream, ????????);
???
1????????? ArchiveLoadoptions = ???? ??????????????? ();
2options.setDecryptionPassword ("p@s $");
3????? ????? = ????? ????? ("myarchive.zip", ????????);

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

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

?????? ????? ?????? ?? ?????? ?? ????????? ?????? ?????? CreateEntry. ??????????????, ??????????? ??? ???????, ?????????? ?????????? ?????? ? ?????? ? ????? ??? ?????? ????? ????? ?? ?????????????? ???????? ?????? ????????????. ????? ? ???????? ????? ?????? ???? ?????? ?? ??????, ?? ?????? ??????????? ????? ????? ???????.

 1// ??????? ?????? ????? ?? ??????? ??????, ???????? ?????, ??????'???????? ?????????????? ????????? ?? ?????????? ??? ??????.
 2CreateEntry (????? ?????, ??????? InputStream, ArchiveEntrySettings Newentriessettings)
 3
 4// ??????? ?????? ????? ?? ??????? ?????? ?? ???????? ??????, ??????'???????? ?????????????? ????????? ?? ?????????? ??? ??????.
 5CreateEntry (????? ?????, String Path, ArchiveEntrySettings Newentriessettings)
 6
 7// ??????? ?????? ????? ?? ??????? ??????, ???????? ?????, ??????'???????? ?????????????? ????????? ?? ?????????? ??? ??????.
 8// ???????? ???????? ????? NTFS.
 9CreateEntry (??'? ?????, ???? ?????, ArchiveEntrySettings Newentriessettings)
10// ??????? ?????? ????? ?? ??????? ??????, ???????? ?????, ?????????????? ????????? ?? ?????????? ??? ??????.
11// ???????? ???????? ????? NTFS ?? ??????? ????????? ?????????.
12CreateEntry (??'? ?????, ??????? InputStream, ArchiveEntrySettings Newentriessettings, ???? ?????)
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.