public class BsonBinary extends BsonValue
| Constructor | Description |
|---|---|
BsonBinary(byte[] data) |
Construct a new instance with the given data and the default sub-type
|
BsonBinary(byte type,
byte[] data) |
Construct a new instance with the given data and binary sub type.
|
BsonBinary(BsonBinarySubType type,
byte[] data) |
Construct a new instance with the given data and binary sub type.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object o) |
|
BsonType |
getBsonType() |
Gets the BSON type of this value.
|
byte[] |
getData() |
Gets the data of this Binary.
|
byte |
getType() |
Gets the type of this Binary.
|
int |
hashCode() |
|
String |
toString() |
asArray, asBinary, asBoolean, asDateTime, asDBPointer, asDecimal128, asDocument, asDouble, asInt32, asInt64, asJavaScript, asJavaScriptWithScope, asNumber, asObjectId, asRegularExpression, asString, asSymbol, asTimestamp, isArray, isBinary, isBoolean, isDateTime, isDBPointer, isDecimal128, isDocument, isDouble, isInt32, isInt64, isJavaScript, isJavaScriptWithScope, isNull, isNumber, isObjectId, isRegularExpression, isString, isSymbol, isTimestamppublic BsonBinary(byte[] data)
data - the dataBsonBinarySubType.BINARYpublic BsonBinary(BsonBinarySubType type, byte[] data)
data - the datatype - the binary sub typeBsonBinarySubType.BINARYpublic BsonBinary(byte type,
byte[] data)
data - the datatype - the binary sub typeBsonBinarySubType.BINARYpublic BsonType getBsonType()
BsonValuegetBsonType in class BsonValuepublic byte getType()
public byte[] getData()