Bson Binary
A representation of the BSON Binary type.
Note: that for performance reasons instances of this class are not immutable, so care should be taken to only modify the underlying byte array if you know what you're doing, or else make a defensive copy: BsonBinary.clone.
Constructors
Construct a new instance with the given data and the default subtype BsonBinarySubType.BINARY.
Construct a new instance with the given data and byte value of the subtype
constructs a new instance with the given subtype and data
Functions
Gets this value as a BsonBinary if it is one, otherwise throws exception
Gets this value as a BsonBoolean if it is one, otherwise throws exception
Gets this value as a BsonMaxKey if it is one, otherwise throws exception
Gets this value as a BsonMinKey if it is one, otherwise throws exception
Gets this value as a BsonNull if it is one, otherwise throws exception
Gets this value as a BsonUndefined if it is one, otherwise throws exception
Gets this value as a BsonDateTime if it is one, otherwise throws exception
Gets this value as a BsonDBPointer if it is one, otherwise throws exception
Gets this value as a BsonDecimal128 if it is one, otherwise throws exception
Gets this value as a BsonDocument if it is one, otherwise throws exception
Gets this value as a BsonDouble if it is one, otherwise throws exception
Gets this value as a BsonJavaScript if it is one, otherwise throws exception
Gets this value as a BsonJavaScriptWithScope if it is one, otherwise throws exception
Gets this value as a BsonNumber if it is one, otherwise throws exception
Gets this value as an BsonObjectId if it is one, otherwise throws exception
Gets this value as a BsonRegularExpression if it is one, otherwise throws exception
Gets this value as a BsonString if it is one, otherwise throws exception
Gets this value as a BsonSymbol if it is one, otherwise throws exception
Gets this value as a BsonTimestamp if it is one, otherwise throws exception
Clones this BsonBinary