uncompressing,它不可能的密码保护在zip文件内的excel。
Without uncompressing, Its impossible to password protect excel which is inside a zip file.
这是你可以做的
- Unzip the content using tips in What is the best way to extract a zip file using java and Compressing and Decompressing Data Using Java APIs
- Password protect extracted excel file using tips in Password Protected Excel File
- Zip the password protected excel file using tips in Java Compress Large File