Contains the base BSON classes.
Interface Summary Interface Description BSONCallbackA callback interface for describing the structure of a BSON document. BSONDecoderAn interface for decoders of BSON documents. BSONEncoderA
BSONEncoderis a class which can be used to turn documents into byte arrays.
BSONObjectA key-value map that can be saved to the database. BsonReaderAn interface for reading a logical BSON document using a pull-oriented API. BsonReaderMarkRepresents a bookmark that can be used to reset a
BsonReaderto its state at the time the mark was created.
BsonWriterAn interface for writing a logical BSON document using a push-oriented API. ByteBufAn interface wrapper around a
java.nio.ByteBufferwhich additionally is
Closeable, so that pooled byte buffers know how.
FieldNameValidatorA field name validator, for use by BSON writers to validate field names as documents are encoded. TransformerTransforms objects that can be converted to BSON into other Java types, and vice versa.
Class Summary Class Description AbstractBsonReaderAbstract base class for BsonReader implementations. AbstractBsonWriterRepresents a BSON writer for some external format (see subclasses). BasicBSONCallbackAn implementation of
BsonCallbackthat creates an instance of BSONObject.
BasicBSONDecoderBasic implementation of BSONDecoder interface that creates BasicBSONObject instances BasicBSONEncoderThis is meant to be pooled or cached. BasicBSONObjectA simple implementation of
BSON Deprecated.there is no replacement for this class BsonArrayA type-safe representation of the BSON array type. BsonBinaryA representation of the BSON Binary type. BsonBinaryReaderA BsonReader implementation that reads from a binary stream of data. BsonBinaryWriterA BsonWriter implementation that writes to a binary stream of data. BsonBinaryWriterSettingsThe customisable settings for writing BSON. BsonBooleanA representation of the BSON Boolean type. BsonDateTimeA representation of the BSON DateTime type. BsonDbPointerHolder for a BSON type DBPointer(0x0c). BsonDecimal128A representation of the BSON Decimal128 type. BsonDocumentA type-safe container for a BSON document. BsonDocumentReaderA
BsonReaderimplementation that reads from an instance of
BsonDocumentthat begins its life as a document of any type and an
Encoderfor that document, which lets an instance of any class with an Encoder be treated as a BsonDocument.
BsonWriterimplementation that writes to an instance of
ByteBufwhich simply wraps an NIO
ByteBufferand forwards all calls to it.
DocumentA representation of a document as a
EmptyBSONCallbackConvenience implementation of BSONCallback that throws
UnsupportedOperationExceptionfor all methods.
BSONCallbackfor creation of
LazyBSONDecoderA decoder for
LazyBSONObjectrepresenting a BSON array.
BSONObjectbacked by a byte buffer that lazily provides keys and values on request.
RawBsonArrayAn immutable BSON array that is represented using only the raw bytes. RawBsonDocumentAn immutable BSON document that is represented using only the raw bytes.
Enum Summary Enum Description AbstractBsonReader.StateThe state of a reader. AbstractBsonWriter.StateThe state of a writer. BsonBinarySubTypeThe Binary subtype BsonContextTypeUsed by BsonReader and BsonWriter implementations to represent the current context. BsonTypeEnumeration of all the BSON types currently supported. UuidRepresentationThe representation to use when converting a UUID to a BSON binary value.
Exception Summary Exception Description BSONExceptionA general runtime exception raised in BSON processing. BsonInvalidOperationExceptionAn exception indicating an invalid BSON operation. BsonMaximumSizeExceededExceptionAn exception indicating a failure to serialize a BSON document due to it exceeding the maximum size. BsonSerializationExceptionAn exception indicating a failure to serialize a BSON value.