Package jakarta.xml.bind.annotation
Annotation Type XmlInlineBinaryData
-
@Retention(RUNTIME) @Target({FIELD,METHOD,TYPE}) public @interface XmlInlineBinaryData
Disable consideration of XOP encoding for datatypes that are bound to base64-encoded binary data in XML.When XOP encoding is enabled as described in
AttachmentMarshaller.isXOPPackage()
, this annotation disables datatypes such asjava.awt.Image
orSource
orbyte[]
that are bound to base64-encoded binary from being considered for XOP encoding. If a Jakarta XML Binding property is annotated with this annotation or if the Jakarta XML Binding property's base type is annotated with this annotation, neitherAttachmentMarshaller.addMtomAttachment(DataHandler, String, String)
norAttachmentMarshaller.addMtomAttachment(byte[], int, int, String, String, String)
is ever called for the property. The binary data will always be inlined.- Since:
- 1.6, JAXB 2.0
- Author:
- Joseph Fialli