Designing Custom Encoders

encodeToWriter() Method

Encodes an XML representation of a message into a Writer object, encoded in custom format.