@Retention(value=RUNTIME) @Target(value={字段,METHOD,TYPE}) public @interface XmlInlineBinaryData
当如AttachmentMarshaller.isXOPPackage()
中所述启用XOP编码时,此注释将禁用与基于 64位编码的二进制文件绑定的数据类型,例如Image
或Source
或byte[] ,用于XOP编码。 如果JAXB属性使用此注释进行注释,或者JAXB属性的基本类型使用此注释进行注释,则不会为该属性调用AttachmentMarshaller.addMtomAttachment(DataHandler, String, String)
或AttachmentMarshaller.addMtomAttachment(byte[], int, int, String, String, String)
。 二进制数据将始终为内联。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.