| Constructor and Description |
|---|
PolygonCodec(CodecRegistry registry)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Polygon |
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,
Polygon value,
EncoderContext encoderContext)
Encode an instance of the type parameter
T into a BSON value. |
Class<Polygon> |
getEncoderClass()
Returns the Class instance that this encodes.
|
public PolygonCodec(CodecRegistry registry)
registry - the registrypublic void encode(BsonWriter writer, Polygon value, EncoderContext encoderContext)
EncoderT into a BSON value.public Class<Polygon> getEncoderClass()
EncodergetEncoderClass in interface Encoder<Polygon>public Polygon decode(BsonReader reader, DecoderContext decoderContext)
DecoderT.