jerome-jouvie/JUnRAR


Plain Java UnRAR Utility (former SourceForge project).

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.jerome-jouvie:junrar:junrar-0.7'
	}
	dependencies {
		implementation("com.github.jerome-jouvie:junrar:junrar-0.7")
	}
	<dependency>
	    <groupId>com.github.jerome-jouvie</groupId>
	    <artifactId>junrar</artifactId>
	    <version>junrar-0.7</version>
	</dependency>

                            
    libraryDependencies += "com.github.jerome-jouvie" % "junrar" % "junrar-0.7"
        
        

                            
    :dependencies [[com.github.jerome-jouvie/junrar "junrar-0.7"]]
        
        

Readme


JUnRAR

Plain Java UnRAR Utility. Original project by Edmund Wagner (formerly on SourceForge).

  • Fixed critical bug in the extraction algorithm that caused wrong bytes in the extracted files in some cases (see this issue, thanks to Roy Damman).
  • Fixed major bug that prevented the extraction of files larger than 2.147.483.647 bytes (see this pull request, thanks to acc15).
  • Fixed minor bug that caused inaccurate file times (see this pull request, thanks to Luke Quinane).
  • Multi-volume archives are supported in both old and new flavours (.rXX & .partX.rar).
  • Encrypted and password protected archives are not yet supported.
  • RAR 5 format is not supported.

Fork used in http://bonzaireader.com

  • Support for streaming RAR from any InputStream
  • ** Use Archive.getAsyncFileHeaders to asynchronously scan the FileHeader
  • ** Use Archive.extractFile to extract from a scanned FileHeader
  • Removes vfs support
  • http://stackoverflow.com/questions/24113840/how-to-decompress-a-rar-file-in-android-application-with-out-of-memory-exception