PPMD compression in Java?

2019-05-06 00:02发布

Does anyone know of a Java implementation of the PPMD compression algorithm?

I have not been able to find a Java implementation, but there is a C# implementation at http://users.senet.com.au/~mjbone/Compression.html that is about 4k lines of code. I'm not going to ask if anyone feels like porting it to Java...

4条回答
We Are One
2楼-- · 2019-05-06 00:28

I was using for the same implementation, and couldn't find any. But I found that 7zip gives the source code of their ppmd implementation just in C++, not in java (at least, until now).

I used system call's to 7zip do compress the data I need, using the command-line version of 7zip.

查看更多
▲ chillily
3楼-- · 2019-05-06 00:30
The star\"
4楼-- · 2019-05-06 00:32

If you are looking for very fast compression, you may also try the java implementation of Google Snappy found here: http://code.google.com/p/snappy/

Snappy is used widely within Google.

查看更多
混吃等死
5楼-- · 2019-05-06 00:36

There seems to be a commercial closed source PPMd implementation here. I have not tried it, nor do I know anything else about it or the company producing it, so I do not know if it is compatible with the 7-zip version of the algorithm. It does not seem to be a pure Java implementation though - it's probably using native calls in the background.

查看更多
登录 后发表回答