public class CompressingSerializer extends StandardSerializer
| Constructor and Description |
|---|
CompressingSerializer() |
| 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 IElementSerializerserialize in class StandardSerializerobj - objectIOException - on i/o problempublic <T> T deSerialize(byte[] data,
ClassLoader loader)
throws IOException,
ClassNotFoundException
deSerialize in interface IElementSerializerdeSerialize in class StandardSerializerdata - data bytesloader - class loader to useIOException - on i/o problemClassNotFoundException - if class is not found during deserializationCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.