uTools-Manuals/docs/java/javax/xml/bind/annotation/XmlInlineBinaryData.html

27 lines
2.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
javax.xml.bind.annotation
</div>
<h2 class="title" title="Annotation Type XmlInlineBinaryData">Annotation Type XmlInlineBinaryData</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr/> <br/> <pre><a href="../../../../java/lang/annotation/Retention.html" title="annotation in java.lang.annotation">@Retention</a>(<a href="../../../../java/lang/annotation/Retention.html#value--">value</a>=<a href="../../../../java/lang/annotation/RetentionPolicy.html#RUNTIME">RUNTIME</a>)
<a href="../../../../java/lang/annotation/Target.html" title="annotation in java.lang.annotation">@Target</a>(<a href="../../../../java/lang/annotation/Target.html#value--">value</a>={<a href="../../../../java/lang/annotation/ElementType.html#FIELD">字段</a>,<a href="../../../../java/lang/annotation/ElementType.html#METHOD">METHOD</a>,<a href="../../../../java/lang/annotation/ElementType.html#TYPE">TYPE</a>})
public @interface <span class="memberNameLabel">XmlInlineBinaryData</span></pre>
<div class="block">
<span>禁用对XML绑定到base64编码的二进制数据的数据类型的XOP编码的考虑。</span>
<p> <span>当如<code>AttachmentMarshaller.isXOPPackage()</code><a href="../../../../javax/xml/bind/attachment/AttachmentMarshaller.html#isXOPPackage--">所述</a>启用XOP编码时此注释将禁用与<a href="../../../../java/awt/Image.html" title="java.awt中的类">基于</a> 64位编码的二进制文件绑定的数据类型例如<a href="../../../../java/awt/Image.html" title="java.awt中的类"><code>Image</code></a><a href="../../../../javax/xml/transform/Source.html" title="javax.xml.transform中的接口"><code>Source</code></a><tt>byte[]</tt> 用于XOP编码。</span> <span>如果JAXB属性使用此注释进行注释或者JAXB属性的基本类型使用此注释进行注释则不会<a href="../../../../javax/xml/bind/attachment/AttachmentMarshaller.html#addMtomAttachment-javax.activation.DataHandler-java.lang.String-java.lang.String-">为该</a>属性调用<a href="../../../../javax/xml/bind/attachment/AttachmentMarshaller.html#addMtomAttachment-javax.activation.DataHandler-java.lang.String-java.lang.String-"><code>AttachmentMarshaller.addMtomAttachment(DataHandler, String, String)</code></a><a href="../../../../javax/xml/bind/attachment/AttachmentMarshaller.html#addMtomAttachment-byte:A-int-int-java.lang.String-java.lang.String-java.lang.String-"><code>AttachmentMarshaller.addMtomAttachment(byte[], int, int, String, String, String)</code></a></span> <span>二进制数据将始终为内联。</span> </p>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
JAXB2.0
</dd>
</dl> </li>
</ul>
</div>
</div>