public interface IElementSerializer
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deSerialize(byte[] bytes)
Turns a byte array into an object.
|
byte[] |
serialize(java.io.Serializable obj)
Turns an object into a byte array.
|
byte[] serialize(java.io.Serializable obj) throws java.io.IOException
obj
- java.io.IOException
java.lang.Object deSerialize(byte[] bytes) throws java.io.IOException, java.lang.ClassNotFoundException
bytes
- java.io.IOException
java.lang.ClassNotFoundException
- thrown if we don't know the object.Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.