Class Codecs.ByteArrayCodec
- java.lang.Object
-
- io.quarkus.redis.datasource.codecs.Codecs.ByteArrayCodec
-
-
Field Summary
Fields Modifier and Type Field Description static Codecs.ByteArrayCodec
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(Type clazz)
Checks if the current codec can handle the serialization and deserialization of object from the given type.byte[]
decode(byte[] item)
Decodes the given bytes to an object.byte[]
encode(Object item)
Encodes the given object.
-
-
-
Field Detail
-
INSTANCE
public static Codecs.ByteArrayCodec INSTANCE
-
-
Method Detail
-
canHandle
public boolean canHandle(Type clazz)
Description copied from interface:Codec
Checks if the current codec can handle the serialization and deserialization of object from the given type.
-
encode
public byte[] encode(Object item)
Description copied from interface:Codec
Encodes the given object. The type of the given object matches the type used to call theCodec.canHandle(Type)
method.
-
decode
public byte[] decode(byte[] item)
Description copied from interface:Codec
Decodes the given bytes to an object. The codec must return an instance of the type used to call theCodec.canHandle(Type)
method.
-
-