views:

59

answers:

2

I'm looking for a Java compression library that:

  • is good for XML
  • has a small footprint
  • is fast (rather than achieves high compression ratio - speed is more important)
  • easy to use

What do you guys suggest?

Thanks

+2  A: 

There are XML minifiers, but for compression, XML is just plain text, very verbose and repetitive, but still only plain text. You will have to look at something like gzip, or any other general compression library and try them, there is no such thing as an XML specific compression library.

fuzzy lollipop
+2  A: 

Java has some built in classes that can be used for the type of compression you're contemplating.

http://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/Deflater.html http://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/Inflater.html

btreat