最近又遇到了這個問題, 查了一下, 原來已經有個 Zip4j 的函式庫可以處理.
Zip4j 的功能如下:
- Create, Add, Extract, Update, Remove files from a Zip file
- Read/Write password protected Zip files
- Supports AES 128/256 Encryption
- Supports Standard Zip Encryption
- Supports Zip64 format
- Supports Store (No Compression) and Deflate compression method
- Create or extract files from Split Zip files (Ex: z01, z02,...zip)
- Supports Unicode file names
- Progress Monitor
使用方式參考他提供的範本即可, 簡單好用. 強力推薦.
沒有留言:
張貼留言