org.sandev.basics.nodecommon
Class SerializerUtil

java.lang.Object
  extended byorg.sandev.basics.nodecommon.SerializerUtil

public class SerializerUtil
extends java.lang.Object

Utility wrapper using the base serializer methods.


Constructor Summary
SerializerUtil()
           
 
Method Summary
static java.lang.String msg2String(CharSerializer cs, SandMessage msg)
          Given a message, return the serialized message text as a string.
static java.lang.String msgArray2String(CharSerializer cs, SandMessage[] msgs)
          Given a message, return the serialized message text as a string.
static SandMessage string2Msg(CharSerializer cs, java.lang.String msgText)
          Given the serialized message text as a string, return the reconstituted message.
static SandMessage[] string2MsgArray(CharSerializer cs, java.lang.String msgText)
          Given the serialized message text as a string, return the reconstituted message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializerUtil

public SerializerUtil()
Method Detail

string2Msg

public static SandMessage string2Msg(CharSerializer cs,
                                     java.lang.String msgText)
                              throws SerializerException
Given the serialized message text as a string, return the reconstituted message.

Throws:
SerializerException

msg2String

public static java.lang.String msg2String(CharSerializer cs,
                                          SandMessage msg)
                                   throws SerializerException
Given a message, return the serialized message text as a string.

Throws:
SerializerException

string2MsgArray

public static SandMessage[] string2MsgArray(CharSerializer cs,
                                            java.lang.String msgText)
                                     throws SerializerException
Given the serialized message text as a string, return the reconstituted message.

Throws:
SerializerException

msgArray2String

public static java.lang.String msgArray2String(CharSerializer cs,
                                               SandMessage[] msgs)
                                        throws SerializerException
Given a message, return the serialized message text as a string.

Throws:
SerializerException