File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "j2me apps" Watch "j2me apps" New topic
Author

j2me apps

jaid bagwan
Greenhorn

Joined: Jan 16, 2008
Posts: 1
hi..
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."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: j2me apps