public void writeSymbol ( Symbol symbol ) throws IOException { _writeArrayFieldNameIfNeeded ( ) ; _verifyValueWrite ( "write symbol" ) ; _buffer . putByte ( _typeMarker , BsonConstants . TYPE_SYMBOL ) ; _writeString ( symbol . getSymbol ( ) ) ; flushBuffer ( ) ; }
Write a BSON Symbol object