BSONBinary

object BSONBinary

BSONBinary utilities

import reactivemongo.api.bson.{ BSONBinary, Subtype }

val bin1 = BSONBinary(
 "foo".getBytes("UTF-8"), Subtype.GenericBinarySubtype)

// See Subtype.UuidSubtype
val uuid = BSONBinary(java.util.UUID.randomUUID())
Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(value: Array[Byte], subtype: Subtype): BSONBinary

Creates a BSONBinary with given value and Subtype.

Creates a BSONBinary with given value and Subtype.

import reactivemongo.api.bson.Subtype

reactivemongo.api.bson.BSONBinary(
 "foo".getBytes("UTF-8"), Subtype.GenericBinarySubtype)
def apply(id: UUID): BSONBinary

Creates a BSONBinary from the given UUID (with Subtype.UuidSubtype).

Creates a BSONBinary from the given UUID (with Subtype.UuidSubtype).

reactivemongo.api.bson.BSONBinary(java.util.UUID.randomUUID())

Returns a string representation of the given BSONBinary.

Returns a string representation of the given BSONBinary.

Extracts the Subtype if that's a BSONBinary.

Extracts the Subtype if that's a BSONBinary.