public BsonBinary getBinary ( final Object key , final BsonBinary defaultValue ) { if ( ! containsKey ( key ) ) { return defaultValue ; } return get ( key ) . asBinary ( ) ; }
If the document does not contain the given key return the given default value . Otherwise gets the value of the key as a BsonBinary .