org.jboss.mx.util
Class SerializationHelper

java.lang.Object
  extended byorg.jboss.mx.util.SerializationHelper

public class SerializationHelper
extends Object

SerializationHelper

Author:
Jeff Haynie

Constructor Summary
SerializationHelper()
           
 
Method Summary
static Object deserialize(byte[] byteArray)
          deserialize, using the current Thread Context classloader
static Object deserialize(byte[] byteArray, ClassLoader cl)
          deserialize an object using a specific ClassLoader
static byte[] serialize(Object obj)
          serialize an object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationHelper

public SerializationHelper()
Method Detail

deserialize

public static Object deserialize(byte[] byteArray)
                          throws IOException,
                                 ClassNotFoundException
deserialize, using the current Thread Context classloader

Parameters:
byteArray -
Returns:
deserialized object
Throws:
IOException
ClassNotFoundException

deserialize

public static Object deserialize(byte[] byteArray,
                                 ClassLoader cl)
                          throws IOException,
                                 ClassNotFoundException
deserialize an object using a specific ClassLoader

Parameters:
byteArray -
cl -
Returns:
deserialized object
Throws:
IOException
ClassNotFoundException

serialize

public static byte[] serialize(Object obj)
                        throws IOException
serialize an object

Parameters:
obj -
Returns:
serialized object
Throws:
IOException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.