A Java implementation of arithmetic coding and PPM compression.