×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    9

    persistent storage

    hi, i was wondering whether it's possible to store the whole class inside a persistent storage.

    instead of the class variable eg. int, string, double, etc.

  2. #2
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: persistent storage

    Hi ,

    There are some open source libraries available . With that you can save your entire class. But internally aging they will do the same thing like get all the date types of the class and store that in RMS

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: persistent storage

    Hi,
    Can you please describes that why do you need to save the class..?

    However you can save anything in RMS by the condition you can convert that into bytes and size id less than the max size of the RMS..
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    31

    Re: persistent storage

    hi, you mention that you can save anything in RMS by the condition you can convert that into bytes and size id less than the max size of the RMS.

    Which means if we created a character class where by it will store data of the character in the character class. Example like the x , y value, the character name value into the character class,

    if we were to convert it into bytes and store in insisde?

    Another question, is it possible also to store ScalableImage too?

    Thanks for the help =)

  5. #5
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: persistent storage

    Hi;
    String appt = "new record";
    byte bytes[] = appt.getBytes();
    rs.addRecord(bytes,0,bytes.length);
    Can you read the link as

    http://www.java2s.com/Code/Java/J2ME...ecordstore.htm
    http://www.java2s.com/Code/Java/J2ME...ecordstore.htm
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Replies: 3
    Last Post: 2008-03-28, 06:21
  2. Read/Write on persistent storage
    By ElektroKomesar in forum Mobile Java General
    Replies: 2
    Last Post: 2007-04-19, 09:30
  3. how to backup persistent storage
    By sell.l in forum Mobile Java General
    Replies: 1
    Last Post: 2006-11-29, 22:11
  4. Persistent storage
    By jorgenaasland in forum Mobile Java General
    Replies: 0
    Last Post: 2005-01-13, 16:02
  5. Persistent Data Storage
    By joanntsc in forum Symbian
    Replies: 1
    Last Post: 2003-09-27, 02:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×