org.springframework.oxm.mime

Interface MimeMarshaller

    • Method Detail

      • marshal

        void marshal(java.lang.Object graph,
                     javax.xml.transform.Result result,
                     @Nullable
                     MimeContainer mimeContainer)
              throws XmlMappingException,
                     java.io.IOException
        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
        Throws:
        XmlMappingException - if the given object cannot be marshalled to the result
        java.io.IOException - if an I/O exception occurs