Skip to content
forked from IvoNet/junrar

plain java unrar util (former sf project)

License

Notifications You must be signed in to change notification settings

Cheetozz/junrar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JUnrar

Adds support to read and extract a rar.

Prerequisites

  • Java 1.8 (JDK)
  • Maven 3+

build

mvn package

Usage

Commandline

java -jar junrar-jar-with-dependencies <rar> <output dir>

Code

RarExtractor rar = new RarExtractor();
rar.extractArchive("path/to/rarfile.rar", "path/to/output/folder");

or in memory:

RarToMemory rar = new RarToMemory();
final Memory memory = rar.extractArchive("path/to/a/file.rar"));

See also the testcase(s) for more code samples

Maven

At this time this verion of junrar is not found in maven central (yet) as I'm not sure if I may do this under a new groupId?

So this is the current way:

  • clone this repository
  • follow the build instructions
  • add the dependency below to your pom.
<dependency>
    <groupId>nl.ivonet</groupId>
    <artifactId>junrar</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

About

plain java unrar util (former sf project)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%