Is there a gzip compression library that will work on J2ME?
A:
Have you tried this one? (I haven't, but found it when googling.)
Grzegorz Oledzki
2009-07-08 07:31:32
what is only for decompression?
Decio Lira
2009-07-12 18:13:46
They only want to gunzip, not gzip.
cdmckay
2009-07-12 19:32:33
+3
A:
Try Jazzlib, although it's GPL, and seems like it hasn't been updated for a while. Another option is to try and lift the source from libgcj (which is what jazzlib did).
J2SE includes java.util.zip
which can compress/decompress gzip files, but the MIDP 2.0 specification does not include a java.util.zip
. And looking at the Java 6 source code for java.util.zip
, each class seems to call native methods, which means you can't just lift what's there and download it to a J2ME device.
Jared Oberhaus
2009-07-12 18:16:10
A:
Another approach would be to find a J2SE implementation and try to convert it to J2ME. I wouldn't expect it to be hard, but still it would require some effort. How about this one (jazzlib?)?
Grzegorz Oledzki
2009-07-12 18:20:27