spring-framework / org.springframework.oxm.mime / MimeMarshaller / marshal

marshal

abstract fun marshal(graph: Any, result: Result, @Nullable mimeContainer: MimeContainer): Unit

Marshals the object graph with the given root into the provided Result, writing binary data to a MimeContainer.

Parameters

graph - the root of the object graph to marshal

result - the result to marshal to

mimeContainer - the MIME container to write extracted binary content to

Exceptions

XmlMappingException - if the given object cannot be marshalled to the result

IOException - if an I/O exception occurs