public class MultiPolygonCodec extends Object implements Codec<MultiPolygon>
| Constructor and Description |
|---|
MultiPolygonCodec(CodecRegistry registry)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiPolygon |
decode(BsonReader reader,
DecoderContext decoderContext)
Decodes a BSON value from the given reader into an instance of the type parameter
T. |
void |
encode(BsonWriter writer,
MultiPolygon value,
EncoderContext encoderContext)
Encode an instance of the type parameter
T into a BSON value. |
Class<MultiPolygon> |
getEncoderClass()
Returns the Class instance that this encodes.
|
public MultiPolygonCodec(CodecRegistry registry)
registry - the registrypublic void encode(BsonWriter writer, MultiPolygon value, EncoderContext encoderContext)
EncoderT into a BSON value.encode in interface Encoder<MultiPolygon>writer - the BSON writer to encode intovalue - the value to encodeencoderContext - the encoder contextpublic Class<MultiPolygon> getEncoderClass()
EncodergetEncoderClass in interface Encoder<MultiPolygon>public MultiPolygon decode(BsonReader reader, DecoderContext decoderContext)
DecoderT.decode in interface Decoder<MultiPolygon>reader - the BSON readerdecoderContext - the decoder contextT.