Package com.mongodb.client.gridfs.codecs
Class GridFSFileCodec
java.lang.Object
com.mongodb.client.gridfs.codecs.GridFSFileCodec
- All Implemented Interfaces:
Codec<GridFSFile>
,Decoder<GridFSFile>
,Encoder<GridFSFile>
A codec for GridFS Files
- Since:
- 3.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(BsonReader reader, DecoderContext decoderContext) void
encode
(BsonWriter writer, GridFSFile value, EncoderContext encoderContext)
-
Constructor Details
-
GridFSFileCodec
Create a new instance- Parameters:
registry
- the codec registry
-
-
Method Details
-
decode
- Specified by:
decode
in interfaceDecoder<GridFSFile>
-
encode
- Specified by:
encode
in interfaceEncoder<GridFSFile>
-
getEncoderClass
- Specified by:
getEncoderClass
in interfaceEncoder<GridFSFile>
-