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 StandardSerializer()
public <T> byte[] serialize(T obj) throws IOException
serialize
in interface IElementSerializer
obj
- IOException
public <T> T deSerialize(byte[] data, ClassLoader loader) throws IOException, ClassNotFoundException
deSerialize
in interface IElementSerializer
data
- IOException
ClassNotFoundException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.