Output seems to relatively straight forward to port.  No tests, though.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/compress/branches/compress-2.0@1556213 13f79535-47bb-0310-9956-ffa450edef68