单项选择题

myformatter是一个引用SoapFormatter对象的变量。stream是一个打开的可写文件流,请问将可序列化对象obj写入流的正确代码是()

A.a
B.b
C.c
D.d