是否有一种独立于格式的方法来处理 JVM 上的存档?
我有兴趣以与通过 awt.imageio api 处理图像类似的方式处理存档内容:只需将它们作为文件获取,看看您是否知道如何解码它们。
显然,有 jar api,但我相信它们只适用于 zip 格式。
最终使用的是 Clojure 代码。
I'm interested in dealing with archive contents in a similar way to dealing with Images through the awt.imageio api: Just get them as a file and see if you know how to decode them.
Obviously, there's the jar apis but I believe they only work with zip formats.
End use is Clojure code.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可以通过 Apache Compress 库处理某些类型。我认为,您还可以仔细查看 Apache Tika 库,它从不同的文件类型中提取文本和元数据,据我所知,他们希望使用更多归档类型来扩展 Apache Compress(查看 JIRA 中的补丁)
I think that some of the types you can handle through Apache Compress library. I think, that you can also make a close look to Apache Tika library, that extracts text and metadata from different file types, and as I remember, that they want to extend Apache Compress with more archive types (look onto patches in the JIRA)