public class

Binary

extends Object
implements Serializable
java.lang.Object
   ↳ org.bson.types.Binary

Class Overview

generic binary holder

Summary

Public Constructors
Binary(byte[] data)
Creates a Binary object with the default binary type of 0
Binary(byte type, byte[] data)
Creates a Binary object
Public Methods
byte[] getData()
byte getType()
int length()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Binary (byte[] data)

Creates a Binary object with the default binary type of 0

Parameters
data raw data

public Binary (byte type, byte[] data)

Creates a Binary object

Parameters
type type of the field as encoded in BSON
data raw data

Public Methods

public byte[] getData ()

public byte getType ()

public int length ()