public class BsonBinary extends BsonValue
| 构造器和说明 |
|---|
BsonBinary(BsonBinarySubType type,
byte[] data)
Construct a new instance with the given data and binary sub type.
|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.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() |
java.lang.String |
toString() |
asArray, asBinary, asBoolean, asDateTime, asDBPointer, asDocument, asDouble, asInt32, asInt64, asJavaScript, asJavaScriptWithScope, asNumber, asObjectId, asRegularExpression, asString, asSymbol, asTimestamp, isArray, isBinary, isBoolean, isDateTime, isDBPointer, 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 在类中 BsonValuepublic byte getType()
public byte[] getData()
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object