Skip to content

Arcana v1.1.0

Choose a tag to compare

@RealBurst RealBurst released this 25 Oct 17:00
· 7 commits to main since this release

Arcana 1.1.0

New

  • Per-entry API: Arcana.read(file) / arcana.reader(File|Path|InputStream) returns an ArchiveReader that iterates the entries in archive order, with their metadata and a content stream - nothing written to disk. ZIP, 7z (solid blocks included), RAR 4 and RAR 5 (solid, volumes, encryption), TAR (plain or compressed: .tar.gz, .tar.xz, .tar.zst...), CPIO and single compressed files are decoded entry by entry; other formats and plugins go through a temporary directory. Extraction limits are counted on the decoded bytes (ExtractionLimits.none() to disable them).
  • ArcanaEntry: compression method, Unix mode, link target and comment (filled for ZIP and RAR).
  • ARJ: garbled (password-protected) entries are decrypted with the password.
  • Encrypted Office documents (OOXML inside an OLE file) are identified; extraction stops with a clear message instead of listing the OLE streams.
  • RAR: two archives can be extracted at the same time (extraction is no longer synchronized).

Fixed

  • RAR 5 solid archives larger than the dictionary: the extraction could loop forever on the next files (present since the first RAR 5 version).
  • RAR multi-volume listing: the whole set is listed, from any volume (only the given volume's headers before).

Changed

  • RAR listing: RAR 4 names use '/', encrypted entries are marked as encrypted (also for ZIP).
  • ARJ encrypted entries: ArcanaEncryptedException (no or wrong password) instead of ArcanaUnsupportedFormatException.

Docs

  • Origin of the XZ code (XZ for Java 1.11) and how upstream changes are followed.
  • New regression samples: rar5-solid-window.rar, garbled-m4.arj, wrong-password-arj.arj, encrypted-office.docx.