Rate This Document
Findability
Accuracy
Completeness
Readability

Introduction

LZ4-java is a compression algorithm applicable to Java based on Yann Collet's work available at http://code.google.com/p/lz4/.

This library provides access to two compression methods that both generate a valid LZ4 stream:

  • Fast scan (LZ4):
    • Low memory footprint (about 16 KB)
    • Very fast (fast scan with skipping heuristics in case the input looks incompressible)
    • Reasonable compression ratio (depending on the redundancy of the input)
  • High compression (LZ4 HC):
    • Medium memory footprint (about 256 KB)
    • Rather slow (about 10 times slower than LZ4)
    • Good compression ratio (depending on the size and the redundancy of the input)

The streams produced by those two compression algorithms use the same compression format with fast decompressing speed, and can be decompressed by the same decompressor instance.

Type: decompression

For more information about LZ4-java, visit the LZ4 official website.