Topic: 如何使用ZipOutputStream进行文件目录压缩。。。 |
Print this page |
1.如何使用ZipOutputStream进行文件目录压缩。。。 | Copy to clipboard |
Posted by: wgf1202 Posted on: 2004-08-19 15:42 各位高手! 我是一个JAVA的初学者,,,,,,请问在使用ZipOutputStream进行文件目录压缩的时候 ,怎么在没有文件的基础上,,,压缩一个空的文件目录。 请各位高手能够指点一下,,,,小弟先谢谢了! |
2.Re:如何使用ZipOutputStream进行文件目录压缩。。。 [Re: wgf1202] | Copy to clipboard |
Posted by: wgf1202 Posted on: 2004-08-19 18:26 其他的压缩我差不多已经完成了,现在剩下这个极端的问题,怎么在ZipOutputStream中添加一个空的目录,我真的很想知道。。。 请各位JAVA同仁能够指点一下!! |
3.Re:如何使用ZipOutputStream进行文件目录压缩。。。 [Re: wgf1202] | Copy to clipboard |
Posted by: kam Posted on: 2004-08-20 10:48 try try this.... ZipOutputStream zipStream = new ZipOutputStream(File.Create("Kam.zip")); ZipEntry zipEntry = new ZipEntry("emptyFolder/"); zipStream.PutNextEntry(zipEntry); .....continue you code...^.^ |
4.Re:如何使用ZipOutputStream进行文件目录压缩。。。 [Re: wgf1202] | Copy to clipboard |
Posted by: wgf1202 Posted on: 2004-08-20 12:15 非常感谢...... 我已经运行好了! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |