aspose file tools*
The moose likes Java Micro Edition and the fly likes j2me apps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "j2me apps" Watch "j2me apps" New topic

j2me apps

jaid bagwan

Joined: Jan 16, 2008
Posts: 1
I m developing an mobile CLDC application and It is an SMS related application. Every character in the message is to be replaced with a string. So,

should I maintain a database table of that replacment strings which scans and replace this entry OR

should I apply through code like
if(char A found)
then replace it with some string.

I am doing this for compressing the SMS data, so if there is any technique for achieving text to text compression, please tell me.
Please help me in this problem.....
Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282
There are many techniques for compressing data, but the cldc is a remakably limited api and does not have a compression routine. For most compression, use Lempel-Ziv-Welch (LZW), which is the same as the java archive file compression uses, the library is available in Java - already useable.
See: Compression (Zips & JARs) Code Samples

"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
jQuery in Action, 2nd edition
subject: j2me apps
Similar Threads
How to devide a task into several parts
SMS Listener using j2me
How to open one application from another one?
Problem: Send Receive SMS in one midlet
Need help with using arraylist