使用 Java 的 RAR 档案

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/561107/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 16:14:21  来源:igfitidea点击:

RAR archives with java

javaarchiverar

提问by user54579

Is there a good java API for manipulating RAR archive files someone could recommend? Googling did not turn up anything overwhelmingly convincing.

有人可以推荐用于操作RAR存档文件的良好Java API吗?谷歌搜索没有发现任何令人信服的东西。

采纳答案by Fabian Steeg

You could try JUnRar, "a RAR handling API implemented in pure Java" (quoting the site).

您可以尝试JUnRar,“用纯 Java 实现的 RAR 处理 API”(引用该站点)。

回答by chubbsondubs

There is also this fork from SF(@Fabian's answer and this one are forked from an old SF project):

还有这个来自 SF 的分支(@Fabian 的回答,这个是从一个旧的 SF 项目中分支出来的):

https://github.com/jukka/java-unrar

https://github.com/jukka/java-unrar

回答by SANN3

I think this will help you.

我认为这会对你有所帮助。

raroscope

内窥镜

A pure Java library for scanning and enumerating RAR archive contents

用于扫描和枚举 RAR 存档内容的纯 Java 库