blueme.messenger.common
Class SerUnser

java.lang.Object
  extended by java.util.Hashtable
      extended by blueme.messenger.common.SerUnser
Direct Known Subclasses:
Config, MSG, SMSService, UserData, UserList

public class SerUnser
extends java.util.Hashtable

All objects that are to be sent from/to the server/client or saved in the clients database, used this class to add means that allow us to serialize/unserialize the object. Not something a MIDlet's supports out of the box..


Constructor Summary
SerUnser()
          Creates a new instance of SerUnser
 
Method Summary
 java.lang.Object get(java.lang.Object key)
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Please note that the key can not use "special" characters, since we don't Base64-encode the key
 java.lang.String serialize()
           
 void unserialize(java.lang.String data)
           
 
Methods inherited from class java.util.Hashtable
clear, contains, containsKey, elements, isEmpty, keys, rehash, remove, size, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerUnser

public SerUnser()
Creates a new instance of SerUnser

Method Detail

get

public java.lang.Object get(java.lang.Object key)
Overrides:
get in class java.util.Hashtable

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Please note that the key can not use "special" characters, since we don't Base64-encode the key

Overrides:
put in class java.util.Hashtable

unserialize

public void unserialize(java.lang.String data)
                 throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

serialize

public java.lang.String serialize()