• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

j2me apps

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.....
 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic