mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-07-05 16:22:43 +08:00
27 lines
2.8 KiB
HTML
27 lines
2.8 KiB
HTML
<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> |