public class StandardSerializer extends Object implements IElementSerializer
| Constructor and Description |
|---|
StandardSerializer() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deSerialize(byte[] data,
ClassLoader loader)
Uses default de-serialization to turn a byte array into an object.
|
<T> byte[] |
serialize(T obj)
Serializes an object using default serialization.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeSerializeFrom, deSerializeFrom, deSerializeFrom, serializeTo, serializeTo, serializeTopublic <T> byte[] serialize(T obj)
throws IOException
serialize in interface IElementSerializerT - the type of the objectobj - IOExceptionpublic <T> T deSerialize(byte[] data,
ClassLoader loader)
throws IOException,
ClassNotFoundException
deSerialize in interface IElementSerializerdata - data bytesloader - class loader to useIOExceptionClassNotFoundExceptionCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.