Skip to content

Unrar library ported to Android, java binding

License

Notifications You must be signed in to change notification settings

draganbjedov/unrar-android

 
 

Repository files navigation

unrar-android

The unrar library java binding.

List archive entries:

RarFile rar = new RarFile("/sdcard/test.rar");
for (RarEntry entry : rar.getEntries(null)) {
    // do something with entry
}

Extract entry:

RarFile rar=new RarFile("/sdcard/test.rar");
rar.extract("one.txt",new UnrarCallback() {
                    @Override
                    public void close() throws IOException {}
                    @Override
                    public void processData(byte[] b, int off, int len) throws IOException {
                        System.out.println(new String(b, off, len, "GBK"));
                    }
                    @Override
                    public String needPassword() {
                    return "";
                    }
                });

Extract all entries:

RarFile rar=new RarFile("/sdcard/test.rar");
rar.extractAll("/destPath/",null);

License

While this crate uses the Apache license for the java parts, the embedded C++ library has a different license.

For more information, see its license file.

About

Unrar library ported to Android, java binding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.1%
  • Java 2.1%
  • Other 0.8%