XZ Utils are a complete implementation of the .xz data compression format. XZ Utils consist of a compression library (liblzma) and command line tools (xz and a few others).
XZ for Java is an implementation of XZ data compression in pure Java.