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>
public final class GridFSFileCodec extends Object implements Codec<GridFSFile>
A codec for GridFS Files- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description GridFSFileCodec(CodecRegistry registry)
Create a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GridFSFile
decode(BsonReader reader, DecoderContext decoderContext)
void
encode(BsonWriter writer, GridFSFile value, EncoderContext encoderContext)
Class<GridFSFile>
getEncoderClass()
-
-
-
Constructor Detail
-
GridFSFileCodec
public GridFSFileCodec(CodecRegistry registry)
Create a new instance- Parameters:
registry
- the codec registry
-
-
Method Detail
-
decode
public GridFSFile decode(BsonReader reader, DecoderContext decoderContext)
- Specified by:
decode
in interfaceDecoder<GridFSFile>
-
encode
public void encode(BsonWriter writer, GridFSFile value, EncoderContext encoderContext)
- Specified by:
encode
in interfaceEncoder<GridFSFile>
-
getEncoderClass
public Class<GridFSFile> getEncoderClass()
- Specified by:
getEncoderClass
in interfaceEncoder<GridFSFile>
-
-