- All Implemented Interfaces:
Codec
Special no operation codec, can be used as marker.
- Since:
- 10.2
-
-
Constructor Summary
Constructors
-
Method Summary
Decodes the byte array returns an object.
byte[]
Encodes the object returns a byte array representation.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
NAME
public static final String NAME
- See Also:
-
-
NO_CODEC
public static final NoCodec NO_CODEC
-
-
Method Details
-
getName
Description copied from interface: Codec
Returns the codec name
- Specified by:
getName
in interface Codec
-
encode
public byte[] encode(Object object)
Description copied from interface: Codec
Encodes the object returns a byte array representation.
- Specified by:
encode
in interface Codec
-
decode
public Object decode(byte[] data)
Description copied from interface: Codec
Decodes the byte array returns an object.
- Specified by:
decode
in interface Codec