protected void addDocument ( final BsonDocument document , final BsonOutput bsonOutput , final FieldNameValidator validator ) { addDocument ( document , getCodec ( document ) , EncoderContext . builder ( ) . build ( ) , bsonOutput , validator , settings . getMaxDocumentSize ( ) + DOCUMENT_HEADROOM , null ) ; }
Appends a document to the message .