com.codestreet.messageforge
Class ConverterSerialization

java.lang.Object
  extended bycom.codestreet.messageforge.Converter
      extended bycom.codestreet.messageforge.ConverterSerialization

public abstract class ConverterSerialization
extends Converter

Converter class for MsgMap and serialized streams.

Author:
Jawaid Hakim.

Constructor Summary
ConverterSerialization()
           
 
Method Summary
static java.io.ObjectOutputStream marshal(java.io.OutputStream outs, RMapMessage source)
          Serialize a RMapMessage and create an ObjectOutputStream.
static RMapMessage unmarshal(java.io.InputStream ins)
          De-serialize a RMapMessage from an InputStream.
 
Methods inherited from class com.codestreet.messageforge.Converter
createMsgObject, createMsgObject, dateToDouble, dateToLong, dateToStr, getBeanValidator, getLenient, getVersion, setBeanValidator, setDateFromDouble, setDateFromLong, setDateFromStr, setDefaultFactory, setMaximumFractionDigits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterSerialization

public ConverterSerialization()
Method Detail

marshal

public static java.io.ObjectOutputStream marshal(java.io.OutputStream outs,
                                                 RMapMessage source)
                                          throws ConverterException
Serialize a RMapMessage and create an ObjectOutputStream.

Parameters:
outs - Output stream used to construct the ObjectOutputStream.
source - RMapMessage to serialize.
Returns:
ObjectOutputStream with the serialized source RMapMessage.
Throws:
ConverterException

unmarshal

public static RMapMessage unmarshal(java.io.InputStream ins)
                             throws ConverterException
De-serialize a RMapMessage from an InputStream.

Parameters:
ins - Input stream used to construct the ObjectInputStream.
Returns:
RMapMessage de-serialized from the input stream.
Throws:
ConverterException


Copyright © 2003-2006 CodeStreet. All Rights Reserved.