Package org.tukaani.xz

XZ data compression support.

Introduction

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.2.0
  • 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.

Authors

XZ for Java is developed and maintained by Lasse Collin.

Major parts of XZ for Java are based on code written by Igor Pavlov in the LZMA SDK.

Other authors:

  • Brett Okken

Many people have contributed improvements or reported bugs. Most of these people are mentioned in the file THANKS.md in the source package.

License

Copyright © The XZ for Java authors and contributors

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.