public class MultiPolygonCodec extends java.lang.Object implements Codec<MultiPolygon>
| 构造器和说明 |
|---|
MultiPolygonCodec(CodecRegistry registry)
Constructs an instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
java.lang.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 在接口中 Encoder<MultiPolygon>writer - the BSON writer to encode intovalue - the value to encodeencoderContext - the encoder contextpublic java.lang.Class<MultiPolygon> getEncoderClass()
EncodergetEncoderClass 在接口中 Encoder<MultiPolygon>public MultiPolygon decode(BsonReader reader, DecoderContext decoderContext)
DecoderT.decode 在接口中 Decoder<MultiPolygon>reader - the BSON readerdecoderContext - the decoder contextT.