github RealBurst/arcana v1.2.0
Arcana v1.2.0

latest release: v1.2.1
18 days ago

What's new

Zstandard compression

Arcana now writes Zstandard, in pure Java, from RFC 8878: .zst and .tar.zst, levels 1 to 12 (default 3).

  • Match finders: "fast" (level 1), "double fast" (levels 2 to 4), hash chains greedy / lazy / lazy2 (levels 5 to 12)

  • Literals raw, RLE or Huffman; sequences with predefined, RLE or own FSE tables; XXH64 checksum

  • Output sizes within 1% of the reference zstd at every level; every output checked with zstd -d

    arcana c -l 6 backup.tar.zst folder/

Zstandard dictionaries (Java API)

Frames that need a dictionary (dictionary ID in the frame header) can now be decoded:

List<ZstdDictionary> dicts = Arrays.asList(ZstdDictionary.of(new File("zs.zsdic")));
InputStream in = new ZstdInputStream(new FileInputStream("file.byml.zs"), ZstdDictionary.provider(dicts));
  • Dictionaries made by zstd --train (entropy tables and repeated offsets) and raw-content dictionaries
  • A missing dictionary gives a clear error: "Zstandard dictionary N needed to decode this frame (not provided)"
  • .zs files (Nintendo games) are extracted under their name without the extension instead of "output"

Amiga disk images (ADF)

New built-in format: AmigaDOS floppy images, OFS and FFS, DD (880 KiB) and HD (1.76 MiB).

  • Directories, file dates and comments, extension blocks, checksums
  • Files that cannot be read (copy protection, damaged blocks) are reported as "skipped" and the rest of the disk is still extracted
  • Non-DOS disks and DOS6/DOS7 (long file names) are refused with a clear message

Plugins

  • Progress bar: PluginSupport.openOutput(destination, name, size) gives plugins the same console progress bar as the built-in formats
  • New plugin arcana-plugin-sarc: Nintendo SARC archives (little- and big-endian: Switch, Wii U, 3DS) and Yaz0-compressed SARC (.szs); extensions sarc, szs, pack, blarc, bactorpack
  • Plugin arcana-plugin-xci reworked: plain dumps and dumps with the key area, root HFS0 address read relative to the card header, partitions (update, normal, logo, secure) read as nested HFS0 with entries named partition/file, lenient recovery (arcana r)

Both plugins require Arcana 1.2.0 or later.

Tests

  • Regression runner: new compression step for every built-in compressor (Zstandard levels 1, 2, 3, 5, 6, 8, 12)
  • New samples: ADF (OFS, FFS), SARC (LE, BE, SZS), XCI (plain, key area)

Download

Arcana-v1.2.0.jar (Java 8 or later): command-line tool and Java library. Checksums below.

Don't miss a new arcana release

NewReleases is sending notifications on new releases.