Java??????????

Java API?asopes.zip???????????????????????????????????????????????????????????????????????ZIP????????????????

???????Zip?????????????????? Aspose.Zip?????????????????????? ?????????????

API?????

Aspose.Zip API?????????????????? ??????????????????(IES)????????????????????????????? API?????????????????????????????????????????API???????????????????????????????????????

????????

????????

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

1Archive Archive = new Archive();

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

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

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

1??????????= new Archive(
2    ???ArchiveEntrySettings(
3        ???CompressionSettings(CompressionMethod.store)????aesecryptionsettings( "p@s $"?encryptionmethod.aes256)));

????????

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

1archive.save(outputstream?saveoptions)
2archive.save(filepath?saveoptions)

???????

??????????????????????????[??????????]????????????(5)?

1fileInputStream ZIPFILESTREAM = new FileInputStream( "archive.zip");
2Archive Archive = new Archive(zipfilestream);
???
1Archive Archive = new Archive( "myarchive.zip");

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

??????????????????[archiveloadoptions]??????????????(6)

1archiveloadoptions options = new archiveloadoptions();
2options.setDecryptionPassWord( "p@s $");
3Archive Archive = new Archive(Sourcestream?Options);
???
1archiveloadoptions options = new archiveloadoptions();
2options.setDecryptionPassWord( "p@s $");
3Archive Archive = new Archive( "myarchive.zip"?options);

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

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

CreateEntry?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

 1//???????????????????????????????????????????????????????
 2createEntry(string name?inputstream source?archiveentrysettings newEntriesttings)
 3
 4//???????????????????????????????????????????????????????
 5CreateEntry(???????????ArchiveEntrySettings newEntriesttings)
 6
 7//????????????????????????????????????????????????????????
 8// NTFS??????????????
 9createEntry(??????????????ArchiveEntrySettings newEntriestetsings)
10//????????????????????????????1?????????????
11// NTFS???????????????????????????????
12createEntry(string name?inputstream source?archiveentrysettings newEntriesttings?????????)
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.