MsgBuilder.java

interface MsgBuilder
{
    /**
    Turn a message object into a string.
    @return a string representing the object, ready to transmit
    */
    String makeMessageFromObject(Object obj);


    /**
    Retrieve a message object from a string.
    Modify the string to remove the message object.
    @return <code>null</code> if no message found, otherwise the
    first message in the buffer
    */
    Object getMessageFromString(StringBuffer sbuf);
}