Package dev.morphia.mapping.codec
Class ByteWrapperArrayCodec
- java.lang.Object
-
- dev.morphia.mapping.codec.ByteWrapperArrayCodec
-
- All Implemented Interfaces:
org.bson.codecs.Codec<Byte[]>
,org.bson.codecs.Decoder<Byte[]>
,org.bson.codecs.Encoder<Byte[]>
public class ByteWrapperArrayCodec extends Object implements org.bson.codecs.Codec<Byte[]>
Encodes a Byte[] to BinData like the driver's ByteArrayCodec does for byte[]- Since:
- 2.1.5
-
-
Constructor Summary
Constructors Constructor Description ByteWrapperArrayCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Byte[]
decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
void
encode(org.bson.BsonWriter writer, Byte[] value, org.bson.codecs.EncoderContext encoderContext)
Class<Byte[]>
getEncoderClass()
-
-
-
Method Detail
-
decode
public Byte[] decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
- Specified by:
decode
in interfaceorg.bson.codecs.Decoder<Byte[]>
-
encode
public void encode(org.bson.BsonWriter writer, Byte[] value, org.bson.codecs.EncoderContext encoderContext)
- Specified by:
encode
in interfaceorg.bson.codecs.Encoder<Byte[]>
-
-