public class Binary extends Object implements Serializable
Constructor and Description |
---|
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()
Copyright © 2016. All Rights Reserved.