Package org.bson.codecs
package org.bson.codecs
This package contains all the default BSON codecs.
-
ClassDescriptionEncodes and decodes
AtomicBoolean
objects.Encodes and decodesAtomicInteger
objects.Encodes and decodesAtomicLong
objects.Encodes and decodesBigDecimal
objects.A Codec for the BSON Binary type.Encodes and decodesBoolean
objects.A codec for BsonArray instances.A Codec for the BSON Binary type.A Codec for BsonBoolean instances.A codec for encoding Bson ImplementationsA codec for encoding simple Bson interface implementationsA Codec for BsonDateTime instances.Converts BSON type DBPointer(0x0c) to database references as DBPointer is deprecated.A Codec for BsonDecimal128 instances.A codec for BsonDocument instances.A CodecA Codec for BsonDouble instances.A Codec for BsonInt32 instances.A Codec for BsonInt64 instances.A Codec for theBsonJavaScript
type.A Codec forBsonJavaScriptWithScope
instances.A codec forBsonMaxKey
instances.A codec forBsonMinKey
instances.A Codec for BsonNull instances.A Codec forBsonObjectId
instances.A codec for BSON regular expressions.A Codec for BsonString instances.A codec for BSON symbol type.A Codec for BSON Timestamp instances.A map from a BSON types to the Class to which it should be decoded.An efficient map of BsonType to CodecAllows reading and writing of the BSON Undefined type.A codec for unknown BsonValues.ACodecProvider
for all subclass of BsonValue.Encodes and decodes byte arrays.Encodes and decodesByte
objects.Encodes and decodesCharacter
objects.Codec<T>Implementations of this interface can both encode and decode values of typeT
.Encodes and decodes instances of typeCode
.Encodes and decodesCodeWithScope
instances.A Codec that generates complete BSON documents for storage in a MongoDB collection.Encodes and decodesjava.util.Date
objects.Encodes and decodesDecimal128
objects.Decoder<T>Decoders are used for reading BSON types from MongoDB and converting them into Java objects.The context for decoding values to BSON.A builder forDecoderContext
instances.A Codec for Document instances.ACodecProvider
for the Document class and all the default Codec implementations on which it depends.Encodes and decodesDouble
objects.Encoder<T>Instances of this class are capable of encoding an instance of the type parameterT
into a BSON value.The context for encoding values to BSON.A builder forEncoderContext
instances.A codec for classes that extendsEnum
A codec provider for classes that extendEnum
.Encodes and decodesFloat
objects.Classes that implement this interface define a way to create IDs for MongoDB documents.Encodes and decodesInteger
objects.Encodes and decodesIterable
objects.ACodecProvider
for classes than implement theIterable
interface.Encodes and Decodes JSON object strings.ACodecProvider
for JSON object stringsEncodes and decodesLong
objects.A Codec for Map instances.ACodecProvider
for the Map class and all the default Codec implementations on which it depends.Encodes and decodes instances of typeMaxKey
.Encodes and decodes instances of typeMinKey
.A Codec for ObjectId instances.Creates newObjectId
instances as IDs for MongoDB Documents.A marker interface forCodec
implementations that can derive a new instance that overrides theUuidRepresentation
.An extension ofUuidCodec
that allows its configuredUuidRepresentation
to be overridden by an externally configuredUuidRepresentation
, most likely configured onMongoClientSettings
orMongoClientOptions
.A codec forPattern
instances.A simple BSONDocumentBuffer codec.Implementations of this interface can decode additional types and translate them to the desired value type depending on the BsonRepresentation.Encodes and decodesShort
objects.Encodes and decodesString
objects.A codec for BSON symbol type.Encodes and decodesUUID
objects.ACodecProvider
for UUID Codecs with custom UUID representationsA Codec provider for dynamically-typed value classes.