org.activemq.util
Class SerializationHelper
java.lang.Object
org.activemq.util.SerializationHelper
public class SerializationHelper
- extends Object
- Version:
- $Revision: 1.1.1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializationHelper
public SerializationHelper()
writeObject
public static byte[] writeObject(Object object)
throws IOException
- Serialize an Object to a ByteArray
- Parameters:
object
-
- Returns:
- a byte[] array
- Throws:
IOException
readObject
public static Object readObject(byte[] data)
throws IOException,
ClassNotFoundException
- Read an Object from a byte array
- Parameters:
data
-
- Returns:
-
- Throws:
IOException
ClassNotFoundException
readObject
public static Object readObject(InputStream in)
throws IOException,
ClassNotFoundException
- read an object from an InputStream
- Parameters:
in
-
- Returns:
-
- Throws:
IOException
ClassNotFoundException
writeObject
public static void writeObject(OutputStream out,
Object obj)
throws IOException
- Write an Object to an OutputStream
- Parameters:
out
- obj
-
- Throws:
IOException
Copyright © 2004-2010 Protique, Ltd.. All Rights Reserved.