|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.tranlog.SerializationHelper
public class SerializationHelper
A utility class to assist with serialization and desearialization of objects to and from byte stream
Constructor Summary | |
---|---|
SerializationHelper()
|
Method Summary | |
---|---|
static java.lang.Object |
deserialize(byte[] blob)
Deserialise the specified blob into an Object and return it to the client. |
static byte[] |
serialize(java.lang.Object object)
Serialize the specified object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerializationHelper()
Method Detail |
---|
public static byte[] serialize(java.lang.Object object) throws java.io.IOException
object
- - object to serialize
java.io.IOException
- - if there is an error with serializationpublic static java.lang.Object deserialize(byte[] blob) throws java.io.IOException, java.lang.ClassNotFoundException
If there is an error with the deserialization then throw an IOException
blob
- - the blob of bytes to deserialize
java.io.IOException
- - if it cannot deseriliaze
java.lang.IllegalArgumentException
- if the blob is null
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |