org.springframework.amqp.utils
Class SerializationUtils
java.lang.Object
org.springframework.amqp.utils.SerializationUtils
public class SerializationUtils
- extends java.lang.Object
Static utility to help with serialization.
- Author:
- Dave Syer
Method Summary |
static java.lang.Object |
deserialize(byte[] bytes)
|
static java.lang.Object |
deserialize(java.io.ObjectInputStream stream)
|
static byte[] |
serialize(java.lang.Object object)
Serialize the object provided. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializationUtils
public SerializationUtils()
serialize
public static byte[] serialize(java.lang.Object object)
- Serialize the object provided.
- Parameters:
object
- the object to serialize
- Returns:
- an array of bytes representing the object in a portable fashion
deserialize
public static java.lang.Object deserialize(byte[] bytes)
- Parameters:
bytes
- a serialized object created
- Returns:
- the result of deserializing the bytes
deserialize
public static java.lang.Object deserialize(java.io.ObjectInputStream stream)
- Parameters:
stream
- an object stream created from a serialized object
- Returns:
- the result of deserializing the bytes