Top Description Methods
javax.xml.bind.annotation

public @Interface XmlInlineBinaryData

extends Annotation
Annotations
@Retention:RUNTIME
@Target:FIELD, METHOD, TYPE
Imports
java.lang.annotation.Retention, .Target, javax.xml.transform.Source, javax.xml.bind.attachment.AttachmentMarshaller, javax.activation.DataHandler

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 as java.awt.Image or Source or byte[] that are bound to base64-encoded binary from being considered for XOP encoding. If a JAXB property is annotated with this annotation or if the JAXB property's base type is annotated with this annotation, neither AttachmentMarshaller#addMtomAttachment(DataHandler, String, String) nor AttachmentMarshaller#addMtomAttachment(byte[], int, int, String, String, String) is ever called for the property. The binary data will always be inlined.

Author
Joseph Fialli
Since
1.6, JAXB 2.0

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString