本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLBinaryDataMapping.getMimeType()
方法的一些代码示例,展示了XMLBinaryDataMapping.getMimeType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLBinaryDataMapping.getMimeType()
方法的具体详情如下:
包路径:org.eclipse.persistence.oxm.mappings.XMLBinaryDataMapping
类名称:XMLBinaryDataMapping
方法名:getMimeType
[英]INTERNAL
[中]内部的
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
elem.setMinOccurs("1");
if (mapping.getMimeType() != null) {
elem.getAttributesMap().put(XMLConstants.EXPECTED_CONTENT_TYPES_QNAME, mapping.getMimeType());
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
if(c_id == null) {
objectValue, marshaller, xmlBinaryDataMapping.getMimeType(object)).getData();
objectValue, marshaller, xmlBinaryDataMapping.getMimeType(object));
bytes = data.getData();
c_id = marshaller.getAttachmentMarshaller().addSwaRefAttachment(bytes, 0, bytes.length);
if (objectValue.getClass() == ClassConstants.APBYTE) {
bytes = (byte[]) objectValue;
c_id = marshaller.getAttachmentMarshaller().addMtomAttachment(bytes, 0, bytes.length, this.xmlBinaryDataMapping.getMimeType(object), lastFrag.getLocalName(), lastFrag.getNamespaceURI());
} else if (xmlBinaryDataMapping.getAttributeClassification() == XMLBinaryDataHelper.getXMLBinaryDataHelper().DATA_HANDLER) {
c_id = marshaller.getAttachmentMarshaller().addMtomAttachment((DataHandler) objectValue, lastFrag.getLocalName(), lastFrag.getNamespaceURI());
if(c_id == null) {
objectValue, marshaller, xmlBinaryDataMapping.getMimeType(object)).getData();
objectValue, marshaller, xmlBinaryDataMapping.getMimeType(object));
bytes = data.getData();
c_id = marshaller.getAttachmentMarshaller().addMtomAttachment(bytes, 0, bytes.length, data.getMimeType(), lastFrag.getLocalName(), lastFrag.getNamespaceURI());
} else {
objectValue, marshaller, xmlBinaryDataMapping.getMimeType(object)).getData();
value = getValueToWrite(((XMLField) xmlBinaryDataMapping.getField()).getSchemaType(), bytes, session);
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
} else {
attributeValue, marshaller, getMimeType(parent));
byte[] bytes = data.getData();
value = marshaller.getAttachmentMarshaller().addSwaRefAttachment(bytes, 0, bytes.length);
XMLBinaryDataHelper.EncodedData data = XMLBinaryDataHelper.getXMLBinaryDataHelper().getBytesForBinaryValue(attributeValue, record.getMarshaller(), getMimeType(parent));
String base64Value = ((XMLConversionManager) session.getDatasourcePlatform().getConversionManager()).buildBase64StringFromBytes(data.getData());
record.put(field, base64Value);
this.getMimeType(parent),//
attributeValue, marshaller, getMimeType(parent));
bytes = data.getData();
attributeValue, marshaller, getMimeType(parent));
bytes = data.getData();
c_id = marshaller.getAttachmentMarshaller().addMtomAttachment(bytes, 0,//
attributeValue, marshaller, getMimeType(parent));
byte[] bytes = data.getData();
c_id = marshaller.getAttachmentMarshaller().addSwaRefAttachment(bytes, 0, bytes.length);
} else {
byte[] bytes = XMLBinaryDataHelper.getXMLBinaryDataHelper().getBytesForBinaryValue(//
attributeValue, marshaller, getMimeType(parent)).getData();
record.put(textField, bytes);
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
} else {
attributeValue, marshaller, getMimeType(parent));
byte[] bytes = data.getData();
value = marshaller.getAttachmentMarshaller().addSwaRefAttachment(bytes, 0, bytes.length);
XMLBinaryDataHelper.EncodedData data = XMLBinaryDataHelper.getXMLBinaryDataHelper().getBytesForBinaryValue(attributeValue, record.getMarshaller(), getMimeType(parent));
String base64Value = ((XMLConversionManager) session.getDatasourcePlatform().getConversionManager()).buildBase64StringFromBytes(data.getData());
record.put(field, base64Value);
this.getMimeType(parent),//
attributeValue, marshaller, getMimeType(parent));
bytes = data.getData();
attributeValue, marshaller, getMimeType(parent));
bytes = data.getData();
c_id = marshaller.getAttachmentMarshaller().addMtomAttachment(bytes, 0,//
attributeValue, marshaller, getMimeType(parent));
byte[] bytes = data.getData();
c_id = marshaller.getAttachmentMarshaller().addSwaRefAttachment(bytes, 0, bytes.length);
} else {
byte[] bytes = XMLBinaryDataHelper.getXMLBinaryDataHelper().getBytesForBinaryValue(//
attributeValue, marshaller, getMimeType(parent)).getData();
record.put(textField, bytes);
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
} else {
attributeValue, marshaller, getMimeType(parent));
byte[] bytes = data.getData();
value = marshaller.getAttachmentMarshaller().addSwaRefAttachment(bytes, 0, bytes.length);
XMLBinaryDataHelper.EncodedData data = XMLBinaryDataHelper.getXMLBinaryDataHelper().getBytesForBinaryValue(attributeValue, record.getMarshaller(), getMimeType(parent));
String base64Value = ((XMLConversionManager) session.getDatasourcePlatform().getConversionManager()).buildBase64StringFromBytes(data.getData());
record.put(field, base64Value);
this.getMimeType(parent),//
attributeValue, marshaller, getMimeType(parent));
bytes = data.getData();
attributeValue, marshaller, getMimeType(parent));
bytes = data.getData();
c_id = marshaller.getAttachmentMarshaller().addMtomAttachment(bytes, 0,//
attributeValue, marshaller, getMimeType(parent));
byte[] bytes = data.getData();
c_id = marshaller.getAttachmentMarshaller().addSwaRefAttachment(bytes, 0, bytes.length);
} else {
byte[] bytes = XMLBinaryDataHelper.getXMLBinaryDataHelper().getBytesForBinaryValue(//
attributeValue, marshaller, getMimeType(parent)).getData();
record.put(textField, bytes);
内容来源于网络,如有侵权,请联系作者删除!