接口 MimeMarshaller
- 所有超级接口:
Marshaller
- 所有已知实现类:
Jaxb2Marshaller
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
- 另请参阅:
-
方法概要
修饰符和类型方法说明void
marshal
(Object graph, Result result, MimeContainer mimeContainer) Marshals the object graph with the given root into the providedResult
, writing binary data to aMimeContainer
.从接口继承的方法 cn.taketoday.oxm.Marshaller
marshal, supports
-
方法详细资料
-
marshal
void marshal(Object graph, Result result, @Nullable MimeContainer mimeContainer) throws XmlMappingException, IOException Marshals the object graph with the given root into the providedResult
, writing binary data to aMimeContainer
.- 参数:
graph
- the root of the object graph to marshalresult
- the result to marshal tomimeContainer
- the MIME container to write extracted binary content to- 抛出:
XmlMappingException
- if the given object cannot be marshalled to the resultIOException
- if an I/O exception occurs
-