Package org.tukaani.xz

XZ data compression support.


This aims to be a complete implementation of XZ data compression in pure Java. Features:

  • Full support for the .xz file format specification version 1.0.4
  • Single-threaded streamed compression and decompression
  • Single-threaded decompression with limited random access support
  • Raw streams (no .xz headers) for advanced users, including LZMA2 with preset dictionary

Threading is planned but it is unknown when it will be implemented.

For the latest source code, see the home page of XZ for Java.

Getting started

Start by reading the documentation of XZOutputStream and XZInputStream. If you use XZ inside another file format or protocol, see also SingleXZInputStream.


XZ for Java 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.

This software is provided "as is", without any warranty.