public class SerializableCodec<T extends Serializable> extends Object implements Codec<T>
Serializable encoding. It is highly recommended to use Externalizable, for
performance reason.| Constructor and Description |
|---|
SerializableCodec() |
| Modifier and Type | Method and Description |
|---|---|
T |
decode(byte[] data)
Decodes the byte array returns an object.
|
byte[] |
encode(T object)
Encodes the object returns a byte array representation.
|
String |
getName()
Returns the codec name
|
public static final String NAME
public SerializableCodec()
public String getName()
CodecgetName in interface Codec<T extends Serializable>public byte[] encode(T object)
Codecencode in interface Codec<T extends Serializable>Copyright © 2019 Nuxeo. All rights reserved.