| 构造器和说明 |
|---|
PointCodec(CodecRegistry registry)
Constructs a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Point |
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,
Point value,
EncoderContext encoderContext)
Encode an instance of the type parameter
T into a BSON value. |
java.lang.Class<Point> |
getEncoderClass()
Returns the Class instance that this encodes.
|
public PointCodec(CodecRegistry registry)
registry - the registrypublic void encode(BsonWriter writer, Point value, EncoderContext encoderContext)
EncoderT into a BSON value.public java.lang.Class<Point> getEncoderClass()
EncodergetEncoderClass 在接口中 Encoder<Point>public Point decode(BsonReader reader, DecoderContext decoderContext)
DecoderT.