PPMD compression in Java?

别说谁变了你拦得住时间么 提交于 2019-12-07 09:36:46

问题


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...


回答1:


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.




回答2:


Please see http://www.example-code.com/java/ppmd.asp and libraries to be found in here http://www.chilkatsoft.com/java.asp




回答3:


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.




回答4:


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.



来源:https://stackoverflow.com/questions/3454371/ppmd-compression-in-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!