接口 MimeMarshaller

所有超级接口:
Marshaller
所有已知实现类:
Jaxb2Marshaller

public interface MimeMarshaller extends Marshaller
Subinterface of Marshaller that can use MIME attachments to optimize storage of binary data. Attachments can be added as MTOM, XOP, or SwA.
从以下版本开始:
4.0
作者:
Arjen Poutsma
另请参阅:
  • 方法详细资料

    • marshal

      void marshal(Object graph, Result result, @Nullable MimeContainer mimeContainer) throws XmlMappingException, IOException
      Marshals the object graph with the given root into the provided Result, writing binary data to a MimeContainer.
      参数:
      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
      抛出:
      XmlMappingException - if the given object cannot be marshalled to the result
      IOException - if an I/O exception occurs