Port of Snappy to Java