开发者

What are some good binary data compression Java libraries?

I'm looking into compressing binary data, more specifically serialized Java objects. I think I need an implementation of one of the algorithms that are listed on this Wikipedia page. I found a couple of tutorials and blog posts but no libraries (and most code I found seemed to be ported from other languages... and I don't trust the efficiency and accuracy of a Java library where method names b开发者_如何学Cegin with capital letters). So, any pointers on which algorithm is most suitable for compressing serialized Java objects (as well as arbitrary binary data) would be much appreciated. And it would be amazing if someone knows of an active project that relates to this topic (Apache didn't seem to have anything).


Actually JBoss provides good alternative to standard java serialization mechanism - JBoss Serialization. Have a look at http://jboss.org/serialization


You could take a look at [G]Zip(In|Out)putStream for a fully-after-serialization compression scheme. It might give you good compression without having to change any of your existing serialization logic. You'd have to test it to determine the difference it would make.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜