Is there a GZIP J2ME library?

Is there a gzip compression library that will work on J2ME?

+5
source share
6 answers

Try Jazzlib , although it has a GPL and it seems like it hasn't been updated for a while. Another option is to try raising the source code from libgcj (this is what jazzlib did).

J2SE includes java.util.zip, which can compress / decompress gzip files, but the MIDP 2.0 specification does not include java.util.zip. And, looking at the Java 6 source code for java.util.zip, each class apparently calls its own methods, which means you can't just pick up what's in there and load it onto a J2ME device.

+4
source

Another approach would be to find a J2SE implementation and try to convert it to J2ME. I would not expect it to be difficult, but still it will take some effort. How about this one (jazzlib?) ?

+1
source
+1

You can check out: http://code.google.com/p/compress-j2me/ . Uses only 7k (~ 5k after obfuscation). Compression is under development.

+1
source

Have you tried this ? (I did not do this, but found it when searching the Internet.)

0
source

I saw the successful use of http://www.tinyline.com/utils/ , which gives you gzipinputstream, useful for http communications.

0
source

All Articles