All Projects → radarsh → raroscope

radarsh / raroscope

Licence: Apache-2.0 license
A pure Java library for scanning and enumerating RAR archive contents

Programming Languages

java
68154 projects - #9 most used programming language
groovy
2714 projects

Projects that are alternatives of or similar to raroscope

GainedVAE
A Pytorch Implementation of a continuously rate adjustable learned image compression framework.
Stars: ✭ 43 (+34.38%)
Mutual labels:  compression
lz4ultra
Optimal LZ4 compressor, that produces files that decompress faster while keeping the best compression ratio
Stars: ✭ 49 (+53.13%)
Mutual labels:  compression
blz4
Example of LZ4 compression with optimal parsing using BriefLZ algorithms
Stars: ✭ 24 (-25%)
Mutual labels:  compression
xcdat
Fast compressed trie dictionary library
Stars: ✭ 51 (+59.38%)
Mutual labels:  compression
ruby-xz
Ruby bindings for liblzma, using fiddle
Stars: ✭ 33 (+3.13%)
Mutual labels:  compression
brieflz
Small fast Lempel-Ziv compression library
Stars: ✭ 84 (+162.5%)
Mutual labels:  compression
levi-db
levi-db is a fast database engine
Stars: ✭ 37 (+15.63%)
Mutual labels:  compression
kanzi-cpp
Lossless data compression in C++
Stars: ✭ 60 (+87.5%)
Mutual labels:  compression
FastIntegerCompression.js
Fast integer compression library in JavaScript
Stars: ✭ 46 (+43.75%)
Mutual labels:  compression
Unishox2
Compression for Unicode short strings
Stars: ✭ 124 (+287.5%)
Mutual labels:  compression
RC-PyTorch
PyTorch code for the CVPR'20 paper "Learning Better Lossless Compression Using Lossy Compression"
Stars: ✭ 44 (+37.5%)
Mutual labels:  compression
ZipArchive
A single-class pure VB6 library for zip with ASM speed
Stars: ✭ 38 (+18.75%)
Mutual labels:  compression
py-lz4framed
LZ4-frame library for Python (via C bindings)
Stars: ✭ 42 (+31.25%)
Mutual labels:  compression
Turbo-Transpose
Transpose: SIMD Integer+Floating Point Compression Filter
Stars: ✭ 50 (+56.25%)
Mutual labels:  compression
dedupsqlfs
Deduplicating filesystem via Python3, FUSE and SQLite
Stars: ✭ 24 (-25%)
Mutual labels:  compression
Compressor
An android image compression library.
Stars: ✭ 6,745 (+20978.13%)
Mutual labels:  compression
ZRA
ZStandard Random Access (ZRA) allows random access inside an archive compressed using ZStandard
Stars: ✭ 21 (-34.37%)
Mutual labels:  compression
zig-snappy
Snappy compression for Zig
Stars: ✭ 25 (-21.87%)
Mutual labels:  compression
Frost
A backup program that does deduplication, compression, encryption
Stars: ✭ 25 (-21.87%)
Mutual labels:  compression
Re-Pair
Offline Dictionary-based Compression (Re-Pair, Recursive Pairing)
Stars: ✭ 21 (-34.37%)
Mutual labels:  compression

Introduction

Download Maven Central CircleCI

Ever faced the challenge to be able to scan RAR archives using Java? Wished the API was as simple and easy to use as the ones provided for ZIP and JAR handling in Java? Don't want the hassles of including expensive native code into your Java application?

RARoScope is here to solve all these woes. The following lines are all you've to write to list out all the entries of a RAR file, say, D:/Data.rar.

// Construct the RARFile object using the file path
RARFile file = new RARFile("D:/Data.rar");

// Get the handle to the Enumeration
Enumeration<RAREntry> entries = file.entries();

// Iterate and print
while (entries.hasMoreElements()) {
    RAREntry entry = entries.nextElement();
    
    System.out.println(entry.getName());
}

Impressed? I sure was thrilled when I first wrote the library! Go ahead, download RARoScope and start using it in your applications right now.

Usage

Gradle

compile 'com.adarshr:raroscope:1.0.2'

Maven

<dependency>
    <groupId>com.adarshr</groupId>
    <artifactId>raroscope</artifactId>
    <version>1.0.2</version>
</dependency>

What RARoScope can do

Exposing a simple API, RARoScope packs the following rich features.

Enhanced checking for true RAR archives

RARoScope ensures false RAR archives such as files with just a ".rar" extension do not interrupt further processing by reading and verifying the RAR marker header block and throwing exceptions where appropriate.

A rich RAREntry class

RARoScope reads almost all the information available in a RAR archive and loads them into the RAREntry instances. Following are the file metadata retrieved.

  • Full file name including the path
  • Date and Time the file was modified/created
  • Compressed file size
  • Uncompressed file size
  • The CRC checksum for the file
  • Whether a file is a directory
  • The operating system on which the file was added to the archive
  • The compression method used
  • The RAR version required to decompress and retrieve the file

Optimized for performance

RARoScope has been designed to make efficient use of the underlying byte buffer so that very few I/O reads happen in each cycle. An effect of this is improved performance with very small cycle iteration times.

What RARoScope can't do

However, because of various factors, RARoScope does have its limitations and can't do the following.

Creating RAR archives

Because of the proprietary nature of the RAR archive format, RARoScope can't be used to create RAR archives.

Reading file contents/decompressing

Since RARoScope has been poised as more of a "RAR scanning library" rather than a "RAR decompressor" for Java, it can't do the decompressing part. However, this is open to change in the near future. Depending on the response I get, I might implement a decompressing logic.

Reading RAR entries with comments

RARoScope doesn't support reading comments and entries with comments as of now.

Multi-volume RAR archives

RARoScope doesn't support reading multi-volume archives yet.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].