Serialization via J2ME or BlackBerry APIs

后端 未结 4 2072
时光说笑
时光说笑 2020-12-21 07:29

Is it possible to serialize an object into a string or a byte array using either the J2ME or BlackBerry APIs?

Thanks.

4条回答
  •  攒了一身酷
    2020-12-21 08:14

    If your goal is to serialize an object or object graph for persisting to flash memory, you can use the PersistentStore class. Many of the native object types such as Boolean, Byte, Character, Integer, Long, Object, Short, String, Vector, Hashtable are implicitly persistable.

提交回复
热议问题