This post originated from an RSS feed registered with Java Buzz
by Goldy Lukka.
Original Post: GZip Library for J2ME
Feed Title: Xyling Java Blogs
Feed URL: http://www.javablogs.xyling.com/thisWeek.rss
Feed Description: Your one stop source for Java Related Resources.
The J2ME app frequently retrieves a bulk of data (delimited text) from the server. This works fine, except that this incurs transfer cost ($/byte transferred) and time (sec/byte transferred). Overtime, it can be really expensive. The solution could be
- compress the data at the server side, - transfer it compressed (to the client/phone), and - decompress it
Problems: java.util.jar and java.util.zip just aren't available on J2ME platform.
Solution: Title of this post.
TinyLine GZIPInputStream is a pure J2ME implementation of the Java 2 java.util.zip.GZIPInputStream class that uses the same API. The size of the class in the JAR format is about 6K.