Java and Scala abstractions for some compression algorithms.