ar

Here is a simple example of how to use Compress4J to create and extract ar files:

Example Usage

Ar Creation
try (ArArchiveCreator arCreator =
        ArArchiveCreator.builder(Path.of("example.ar")).build()) {
    arCreator.addFile(Path.of("path/to/file.txt"));
}
Ar Extraction
try (ArArchiveExtractor arExtractor = ArArchiveExtractor.builder(Path.of("example.ar"))
        .overwrite(true)
        .build()) {
    arExtractor.extract(Path.of("outputDir"));
}