public class Binary
extends java.lang.Object
implements java.io.Serializable
| 构造器和说明 |
|---|
Binary(BsonBinarySubType type,
byte[] data)
Creates a Binary with the specified type and data.
|
Binary(byte[] data)
Creates a Binary object with the default binary type of 0
|
Binary(byte type,
byte[] data)
Creates a Binary object
|
public Binary(byte[] data)
data - raw datapublic Binary(BsonBinarySubType type, byte[] data)
type - the binary typedata - the binary datapublic Binary(byte type,
byte[] data)
type - type of the field as encoded in BSONdata - raw datapublic byte getType()
public byte[] getData()
public int length()
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Object