src/share/jaxws_classes/javax/xml/bind/annotation/XmlInlineBinaryData.java

Print this page
rev 507 : 8047724: @since tag cleanup in jaxws
Reviewed-by:


  34 
  35 import javax.xml.transform.Source;
  36 import javax.xml.bind.attachment.AttachmentMarshaller;
  37 import javax.activation.DataHandler;
  38 
  39 /**
  40  * Disable consideration of XOP encoding for datatypes that are bound to
  41  * base64-encoded binary data in XML.
  42  *
  43  * <p>
  44  * When XOP encoding is enabled as described in {@link AttachmentMarshaller#isXOPPackage()}, this annotation disables datatypes such as {@link java.awt.Image} or {@link Source} or <tt>byte[]</tt> that are bound to base64-encoded binary from being considered for
  45  * XOP encoding. If a JAXB property is annotated with this annotation or if
  46  * the JAXB property's base type is annotated with this annotation,
  47  * neither
  48  * {@link AttachmentMarshaller#addMtomAttachment(DataHandler, String, String)}
  49  * nor
  50  * {@link AttachmentMarshaller#addMtomAttachment(byte[], int, int, String, String, String)} is
  51  * ever called for the property. The binary data will always be inlined.
  52  *
  53  * @author Joseph Fialli
  54  * @since JAXB2.0
  55  */
  56 @Retention(RUNTIME)
  57 @Target({FIELD,METHOD,TYPE})
  58 public @interface XmlInlineBinaryData {
  59 }


  34 
  35 import javax.xml.transform.Source;
  36 import javax.xml.bind.attachment.AttachmentMarshaller;
  37 import javax.activation.DataHandler;
  38 
  39 /**
  40  * Disable consideration of XOP encoding for datatypes that are bound to
  41  * base64-encoded binary data in XML.
  42  *
  43  * <p>
  44  * When XOP encoding is enabled as described in {@link AttachmentMarshaller#isXOPPackage()}, this annotation disables datatypes such as {@link java.awt.Image} or {@link Source} or <tt>byte[]</tt> that are bound to base64-encoded binary from being considered for
  45  * XOP encoding. If a JAXB property is annotated with this annotation or if
  46  * the JAXB property's base type is annotated with this annotation,
  47  * neither
  48  * {@link AttachmentMarshaller#addMtomAttachment(DataHandler, String, String)}
  49  * nor
  50  * {@link AttachmentMarshaller#addMtomAttachment(byte[], int, int, String, String, String)} is
  51  * ever called for the property. The binary data will always be inlined.
  52  *
  53  * @author Joseph Fialli
  54  * @since 1.6, JAXB 2.0
  55  */
  56 @Retention(RUNTIME)
  57 @Target({FIELD,METHOD,TYPE})
  58 public @interface XmlInlineBinaryData {
  59 }