org.objectweb.petals.tools.rmi.common.serializable
Class MessageExchangeSerializer

java.lang.Object
  extended by org.objectweb.petals.tools.rmi.common.serializable.MessageExchangeSerializer

public class MessageExchangeSerializer
extends java.lang.Object

Author:
alouis - EBM Websourcing

Field Summary
protected static MessageExchangeSerializer instance
           
 
Method Summary
 java.util.Map<java.lang.String,javax.activation.DataHandler> deserializeAttachments(java.io.ObjectInputStream s)
          Deserialize all datahandlers in the stream and return a Map.
 javax.xml.transform.Source deserializeContent(java.io.ObjectInputStream s, boolean compress)
           
static MessageExchangeSerializer instance()
           
 void serializeAttachments(java.util.Map<java.lang.String,javax.activation.DataHandler> attachments, java.io.ObjectOutputStream s)
          Serialize all datahandler in the Map.
 void serializeContent(javax.xml.transform.Source content, java.io.ObjectOutputStream s, boolean compress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static final MessageExchangeSerializer instance
Method Detail

instance

public static MessageExchangeSerializer instance()

serializeContent

public void serializeContent(javax.xml.transform.Source content,
                             java.io.ObjectOutputStream s,
                             boolean compress)
                      throws java.io.IOException
Throws:
java.io.IOException

deserializeContent

public javax.xml.transform.Source deserializeContent(java.io.ObjectInputStream s,
                                                     boolean compress)
                                              throws java.io.IOException
Throws:
java.io.IOException

serializeAttachments

public void serializeAttachments(java.util.Map<java.lang.String,javax.activation.DataHandler> attachments,
                                 java.io.ObjectOutputStream s)
                          throws java.io.IOException
Serialize all datahandler in the Map.
Serialized information is :
-attachmentName
-attachmentContentType
-name
-inputStream available bytes count
-inputStream as a byteArray

Throws:
java.io.IOException

deserializeAttachments

public java.util.Map<java.lang.String,javax.activation.DataHandler> deserializeAttachments(java.io.ObjectInputStream s)
                                                                                    throws java.io.IOException
Deserialize all datahandlers in the stream and return a Map.
Deserialized information is :
-attachmentName
-attachmentContentType
-name
-Stream available bytes count
-Stream as a byteArray

Throws:
java.io.IOException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.