org.ow2.petals.jbi.messaging.exchange
Class MessageExchangeSerializer

java.lang.Object
  extended by org.ow2.petals.jbi.messaging.exchange.MessageExchangeSerializer

public class MessageExchangeSerializer
extends java.lang.Object

Author:
alouis - EBM Websourcing

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

Method Detail

serializeContent

public static final void serializeContent(javax.xml.transform.Source content,
                                          java.io.ObjectOutputStream outStream,
                                          boolean compress)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

deserializeContent

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

serializeAttachments

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

Parameters:
attachments -
s -
Throws:
java.lang.Exception

deserializeAttachments

public static final 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

Parameters:
s -
Returns:
Throws:
java.io.IOException


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