XZ for Java

This aims to be a complete implementation of XZ data compression in pure Java. Single-threaded streamed compression and decompression and random access decompression have been fully implemented. Threading is planned but it is unknown when it will be implemented.

Source code

The file has been signed with this OpenPGP key.

See the NEWS file for a summary of changes between versions.

xz-java-1.9.zip (153 KiB) signature

Git repository

The primary repository is on GitHub:

git clone https://github.com/tukaani-project/xz-java

It is mirrored with some delay to git.tukaani.org:

git clone https://git.tukaani.org/xz-java.git



Starting from the version 1.0, XZ for Java is available in Maven Central: groupId = org.tukaani, artifactId = xz.


The API documentation was generated from the latest release with javadoc.


This Java implementation of XZ has been put into the public domain, thus you can do whatever you want with it. All the files in the package have been written by Lasse Collin, Igor Pavlov, and/or Brett Okken.