public interface IElementSerializer
Modifier and Type | Method and Description |
---|---|
<T> T |
deSerialize(byte[] bytes,
ClassLoader loader)
Turns a byte array into an object.
|
<T> byte[] |
serialize(T obj)
Turns an object into a byte array.
|
<T> byte[] serialize(T obj) throws IOException
obj
- IOException
<T> T deSerialize(byte[] bytes, ClassLoader loader) throws IOException, ClassNotFoundException
bytes
- IOException
ClassNotFoundException
- thrown if we don't know the object.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.