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.
|
public <T> byte[] serialize(T obj)
throws IOException
serialize in interface IElementSerializerobj - IOExceptionpublic <T> T deSerialize(byte[] data,
ClassLoader loader)
throws IOException,
ClassNotFoundException
deSerialize in interface IElementSerializerdata - data bytesloader - class loader to useIOExceptionClassNotFoundExceptionCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.