資源簡介
Java操作zip壓縮格式的開源項目,功能強大而且使用方便,能完全滿足Java操作Zip壓縮文件,官方網址為:http://www.lingala.net/zip4j/
可以下載到jar包、源碼和示例,好像沒有提供API文檔。
不過需要使用代理訪問,如果讀者嫌麻煩那就從這里下載吧,雖然收取3個CSDN積分,但您評論后一般就可以返還積分了,我也需要積分去下載別人的資源,請諒解!
資源包括:jar包、文檔、源碼和一些官方示例
該項目的官方說明:
Key features(主要特性):
Create, Add, Extract, Update, Remove files from a Zip file
(針對ZIP壓縮文件創建、添加、抽出、更新和移除文件)
Read/Write password protected Zip files
(讀寫有密碼保護的Zip文件)
Supports AES 128/256 Encryption
(支持AES 128/256算法加密)
Supports Standard Zip Encryption
(支持標準Zip算法加密)
Supports Zip64 format
(支持zip64格式)
Supports Store (No Compression) and Deflate compression method
(支持Store(非壓縮)和Deflate壓縮方法---不太明白)
Create or extract files from Split Zip files (Ex: z01, z02,...zip)
(針對分塊zip文件創建和抽出文件)
Supports Unicode file names
(支持Unicode編碼文件名)
Progress Monitor
(進度監控)
可以下載到jar包、源碼和示例,好像沒有提供API文檔。
不過需要使用代理訪問,如果讀者嫌麻煩那就從這里下載吧,雖然收取3個CSDN積分,但您評論后一般就可以返還積分了,我也需要積分去下載別人的資源,請諒解!
資源包括:jar包、文檔、源碼和一些官方示例
該項目的官方說明:
Key features(主要特性):
Create, Add, Extract, Update, Remove files from a Zip file
(針對ZIP壓縮文件創建、添加、抽出、更新和移除文件)
Read/Write password protected Zip files
(讀寫有密碼保護的Zip文件)
Supports AES 128/256 Encryption
(支持AES 128/256算法加密)
Supports Standard Zip Encryption
(支持標準Zip算法加密)
Supports Zip64 format
(支持zip64格式)
Supports Store (No Compression) and Deflate compression method
(支持Store(非壓縮)和Deflate壓縮方法---不太明白)
Create or extract files from Split Zip files (Ex: z01, z02,...zip)
(針對分塊zip文件創建和抽出文件)
Supports Unicode file names
(支持Unicode編碼文件名)
Progress Monitor
(進度監控)

代碼片段和文件信息
/*
*?Copyright?2010?Srikanth?Reddy?Lingala??
*?
*?Licensed?under?the?Apache?License?Version?2.0?(the?“License“);?
*?you?may?not?use?this?file?except?in?compliance?with?the?License.?
*?You?may?obtain?a?copy?of?the?License?at?
*?
*?http://www.apache.org/licenses/LICENSE-2.0?
*?
*?Unless?required?by?applicable?law?or?agreed?to?in?writing?
*?software?distributed?under?the?License?is?distributed?on?an?“AS?IS“?BASIS?
*?WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND?either?express?or?implied.?
*?See?the?License?for?the?specific?language?governing?permissions?and?
*?limitations?under?the?License.?
*/
package?net.lingala.zip4j.examples.extract;
import?net.lingala.zip4j.core.ZipFile;
import?net.lingala.zip4j.exception.ZipException;
/**
?*?Demonstrates?extracting?all?files?from?a?zip?file
?*?
?*?@author?Srikanth?Reddy?Lingala
?*
?*/
public?class?ExtractAllFiles?{
public?ExtractAllFiles()?{
try?{
//?Initiate?ZipFile?object?with?the?path/name?of?the?zip?file.
ZipFile?zipFile?=?new?ZipFile(“c:\\ZipTest\\ExtractAllFiles.zip“);
//?Extracts?all?files?to?the?path?specified
zipFile.extractAll(“c:\\ZipTest“);
}?catch?(ZipException?e)?{
e.printStackTrace();
}
}
/**
?*?@param?args
?*/
public?static?void?main(String[]?args)?{
new?ExtractAllFiles();
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????130980??2012-07-09?10:58??zip4j_1.3.1.jar
?????目錄???????????0??2012-07-09?11:20??zip4j_docs_1.3.1\
?????文件????????7955??2012-07-09?11:20??zip4j_docs_1.3.1\allclasses-fr
?????文件????????6915??2012-07-09?11:20??zip4j_docs_1.3.1\allclasses-nofr
?????文件???????52739??2012-07-09?11:20??zip4j_docs_1.3.1\constant-values.html
?????文件????????5164??2012-07-09?11:20??zip4j_docs_1.3.1\deprecated-list.html
?????文件????????8398??2012-07-09?11:20??zip4j_docs_1.3.1\help-doc.html
?????目錄???????????0??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\
?????文件???????16586??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-1.html
?????文件????????6899??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-10.html
?????文件???????10737??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-11.html
?????文件????????9521??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-12.html
?????文件????????8486??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-13.html
?????文件????????8651??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-14.html
?????文件???????12147??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-15.html
?????文件???????15150??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-16.html
?????文件???????64749??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-17.html
?????文件????????7377??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-18.html
?????文件???????13072??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-19.html
?????文件????????8111??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-2.html
?????文件????????7179??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-20.html
?????文件???????12359??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-21.html
?????文件???????17120??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-22.html
?????文件???????24251??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-3.html
?????文件???????14417??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-4.html
?????文件???????20117??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-5.html
?????文件???????13249??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-6.html
?????文件???????60521??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-7.html
?????文件????????7706??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-8.html
?????文件???????19855??2012-07-09?11:20??zip4j_docs_1.3.1\index-files\index-9.html
?????文件????????1330??2012-07-09?11:20??zip4j_docs_1.3.1\index.html
............此處省略285個文件信息
評論
共有 條評論