开发者

Add all the zip files to a new file

开发者 https://www.devze.com 2022-12-25 10:58 出处:网络
Guys is there a way to add all t开发者_开发百科he zip files to a new zip file.Your question is not very clear... But you should have a look to the java.util.zip package...

Guys is there a way to add all t开发者_开发百科he zip files to a new zip file.


Your question is not very clear... But you should have a look to the java.util.zip package...

EDIT : if you want to use a library, you can also take a look at the apache's commons compress library (at http://commons.apache.org/compress) that allow you to create an ArchiveOutputStream and add your files as ZipEntry (see the example in the javadoc : http://commons.apache.org/compress/apidocs/org/apache/commons/compress/archivers/ArchiveStreamFactory.html)


yes. but the compressed file size don't change so much

This [article][1] explains it so well

Hope it helps you

[1]: This article explains it so well: http://kb.winzip.com/kb/?View=entry&EntryID=104


In a terminal (if your OS is Linux or Mac or you have Cygwin in Windows):

gzip *.zip > newzip.zip
0

精彩评论

暂无评论...
验证码 换一张
取 消