Is there a GZIP J2ME library? [closed]
Asked Answered
B

6

5

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

Billybillycock answered 7/7, 2009 at 23:39 Comment(0)
T
4

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.

Tiller answered 12/7, 2009 at 18:16 Comment(0)
S
1

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?)?

Seleneselenious answered 12/7, 2009 at 18:20 Comment(0)
S
1

Original jazzlib is for J2SE only.

Jazzlib ported to j2me is available here: http://code.google.com/p/staff/downloads/list?q=jazzlib

Shaer answered 24/11, 2010 at 11:45 Comment(0)
S
1

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

Sartorial answered 20/3, 2011 at 4:27 Comment(0)
S
0

Have you tried this one? (I haven't, but found it when googling.)

Seleneselenious answered 8/7, 2009 at 7:31 Comment(0)
R
0

I've seen successful use of http://www.tinyline.com/utils/ which gives you a gzipinputstream useful for http communications.

Reaves answered 10/5, 2012 at 14:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.