我想要在不完全解压的情况下向zip文件中的某个文件写入数据,而且不破坏整个zip

totti81 2002-03-06 11:51:28
谢谢
...全文
65 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
jimjxr 2002-03-09
  • 打赏
  • 举报
回复
不是没人知道,是没有办法,API不支持。文件打包用ZipOutputStream就行。
zfluo 2002-03-09
  • 打赏
  • 举报
回复
才给20,你也太。。。
totti81 2002-03-08
  • 打赏
  • 举报
回复
为什么没人知道,那如果是简单的文件打包呢?
totti81 2002-03-07
  • 打赏
  • 举报
回复
还有没有人知道
ahbill 2002-03-06
  • 打赏
  • 举报
回复
我也有这样的问题待解决
查了很久, 也没发现有解决的办法
gz!
myjoy 2002-03-06
  • 打赏
  • 举报
回复
关注!
skyyoung 2002-03-06
  • 打赏
  • 举报
回复
You will have to save the existing zip file in a temporary file, add the contents of the existing zip file to the temporary file and then add the new contents you want to update the zip file with.

The java.util.zip api's do not provide random access to zip files.

jimjxr 2002-03-06
  • 打赏
  • 举报
回复
目前API不支持修改ZipEntry,只能建一个临时文件操作。
turbochen 2002-03-06
  • 打赏
  • 举报
回复
前几天问过,都没有解答,可能是没办法了.
不知WinRAR是怎么做到的.

23,404

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧