Package org.bson.codecs
This package contains all the default BSON codecs.
-
Interface Summary Interface Description Codec<T> Implementations of this interface can both encode and decode values of typeT
.CollectibleCodec<T> A Codec that generates complete BSON documents for storage in a MongoDB collection.Decoder<T> Decoders are used for reading BSON types from MongoDB and converting them into Java objects.Encoder<T> Instances of this class are capable of encoding an instance of the type parameterT
into a BSON value.IdGenerator Classes that implement this interface define a way to create IDs for MongoDB documents. -
Class Summary Class Description AtomicBooleanCodec Encodes and decodesAtomicBoolean
objects.AtomicIntegerCodec Encodes and decodesAtomicInteger
objects.AtomicLongCodec Encodes and decodesAtomicLong
objects.BigDecimalCodec Encodes and decodesBigDecimal
objects.BinaryCodec A Codec for the BSON Binary type.BooleanCodec Encodes and decodesBoolean
objects.BsonArrayCodec A codec for BsonArray instances.BsonBinaryCodec A Codec for the BSON Binary type.BsonBooleanCodec A Codec for BsonBoolean instances.BsonCodec A codec for encoding Bson ImplementationsBsonCodecProvider A codec for encoding simple Bson interface implementationsBsonDateTimeCodec A Codec for BsonDateTime instances.BsonDBPointerCodec Converts BSON type DBPointer(0x0c) to database references as DBPointer is deprecated.BsonDecimal128Codec A Codec for BsonDecimal128 instances.BsonDocumentCodec A codec for BsonDocument instances.BsonDocumentWrapperCodec A CodecBsonDoubleCodec A Codec for BsonDouble instances.BsonInt32Codec A Codec for BsonInt32 instances.BsonInt64Codec A Codec for BsonInt64 instances.BsonJavaScriptCodec A Codec for theBsonJavaScript
type.BsonJavaScriptWithScopeCodec A Codec forBsonJavaScriptWithScope
instances.BsonMaxKeyCodec A codec forBsonMaxKey
instances.BsonMinKeyCodec A codec forBsonMinKey
instances.BsonNullCodec A Codec for BsonNull instances.BsonObjectIdCodec A Codec forBsonObjectId
instances.BsonRegularExpressionCodec A codec for BSON regular expressions.BsonStringCodec A Codec for BsonString instances.BsonSymbolCodec A codec for BSON symbol type.BsonTimestampCodec A Codec for BSON Timestamp instances.BsonTypeClassMap A map from a BSON types to the Class to which it should be decoded.BsonTypeCodecMap An efficient map of BsonType to CodecBsonUndefinedCodec Allows reading and writing of the BSON Undefined type.BsonValueCodec A codec for unknown BsonValues.BsonValueCodecProvider ACodecProvider
for all subclass of BsonValue.ByteArrayCodec Encodes and decodes byte arrays.ByteCodec Encodes and decodesByte
objects.CharacterCodec Encodes and decodesCharacter
objects.CodeCodec Encodes and decodes instances of typeCode
.CodeWithScopeCodec Encodes and decodesCodeWithScope
instances.DateCodec Encodes and decodesjava.util.Date
objects.Decimal128Codec Encodes and decodesDecimal128
objects.DecoderContext The context for decoding values to BSON.DecoderContext.Builder A builder forDecoderContext
instances.DocumentCodec A Codec for Document instances.DocumentCodecProvider ACodecProvider
for the Document class and all the default Codec implementations on which it depends.DoubleCodec Encodes and decodesDouble
objects.EncoderContext The context for encoding values to BSON.EncoderContext.Builder A builder forEncoderContext
instances.FloatCodec Encodes and decodesFloat
objects.IntegerCodec Encodes and decodesInteger
objects.IterableCodec Encodes and decodesIterable
objects.IterableCodecProvider ACodecProvider
for classes than implement theIterable
interface.LongCodec Encodes and decodesLong
objects.MapCodec A Codec for Map instances.MapCodecProvider ACodecProvider
for the Map class and all the default Codec implementations on which it depends.MaxKeyCodec Encodes and decodes instances of typeMaxKey
.MinKeyCodec Encodes and decodes instances of typeMinKey
.ObjectIdCodec A Codec for ObjectId instances.ObjectIdGenerator Creates newObjectId
instances as IDs for MongoDB Documents.PatternCodec A codec forPattern
instances.RawBsonDocumentCodec A simple BSONDocumentBuffer codec.ShortCodec Encodes and decodesShort
objects.StringCodec Encodes and decodesString
objects.SymbolCodec A codec for BSON symbol type.UuidCodec Encodes and decodesUUID
objects.UuidCodecProvider ACodecProvider
for UUID Codecs with custom UUID representationsValueCodecProvider A Codec provider for dynamically-typed value classes.