This is a Java implementation of the lz-string JavaScript library created by pieroxy here: https://github.com/pieroxy/lz-string.