Package org.nuxeo.lib.stream.codec
Class SerializableCodec<T extends Serializable>
java.lang.Object
org.nuxeo.lib.stream.codec.SerializableCodec<T>
- All Implemented Interfaces:
Codec<T>
Java
Serializable
encoding. It is highly recommended to use Externalizable
, for
performance reason.- Since:
- 10.2
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
SerializableCodec
public SerializableCodec()
-
-
Method Details
-
getName
Description copied from interface:Codec
Returns the codec name- Specified by:
getName
in interfaceCodec<T extends Serializable>
-
encode
Description copied from interface:Codec
Encodes the object returns a byte array representation.- Specified by:
encode
in interfaceCodec<T extends Serializable>
-
decode
Description copied from interface:Codec
Decodes the byte array returns an object.- Specified by:
decode
in interfaceCodec<T extends Serializable>
-