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.6.zip (136 KiB) signature

Git repository

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, but some files are heavily based on public domain code written by Igor Pavlov.