是否有一种独立于平台的方式以编程方式从zip / jar中删除文件? [英] Is there a platform-independent way to programmatically remove a file from a zip / jar?

查看:98
本文介绍了是否有一种独立于平台的方式以编程方式从zip / jar中删除文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望无需解压缩并重新包装存档。

Hopefully without having to unpack and repack the archive.

推荐答案

是的!使用 TrueZip


TrueZIP是一个基于Java的虚拟文件系统(VFS),它使客户端应用程序能够对存档文件执行CRUD(创建,读取,更新,删除)操作,就像它们是虚拟目录一样,即使在多线程环境中使用嵌套存档文件也是如此。 p>

TrueZIP is a Java based virtual file system (VFS) which enables client applications to perform CRUD (Create, Read, Update, Delete) operations on archive files as if they were virtual directories, even with nested archive files in multithreaded environments.

完全理解API需要一些工作,但是一旦你这样做,你会看到它的使用非常简单适用于涉及压缩文件的各种任务。

It takes a little bit of work to fully grok the API, but once you do, you'll see how fantastically easy it is to use for all sorts of tasks involving compressed files.

这篇关于是否有一种独立于平台的方式以编程方式从zip / jar中删除文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆