- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.google.gdata.util.XmlBlob.startElement()
方法的一些代码示例,展示了XmlBlob.startElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlBlob.startElement()
方法的具体详情如下:
包路径:com.google.gdata.util.XmlBlob
类名称:XmlBlob
方法名:startElement
[英]Generates an element opening tag containing an XML blob.
[中]生成包含XML blob的元素开始标记。
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Generates XML corresponding to the type implementing {@link
* ExtensionPoint}. The reason this routine is necessary is that the embedded
* XML blob may contain namespace declarations.
*/
protected void generateStartElement(XmlWriter w,
XmlNamespace namespace, String elementName,
Collection<XmlWriter.Attribute> additionalAttrs,
Collection<XmlNamespace> additionalNs) throws IOException {
XmlBlob.startElement(w, namespace, elementName, xmlBlob, additionalAttrs,
additionalNs);
}
代码示例来源:origin: com.google.gdata/gdata-core-1.0
/**
* Generates XML corresponding to the type implementing {@link
* ExtensionPoint}. The reason this routine is necessary is that the embedded
* XML blob may contain namespace declarations.
*/
protected void generateStartElement(XmlWriter w,
XmlNamespace namespace, String elementName,
Collection<XmlWriter.Attribute> additionalAttrs,
Collection<XmlNamespace> additionalNs) throws IOException {
XmlBlob.startElement(w, namespace, elementName, xmlBlob, additionalAttrs,
additionalNs);
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Generates XML corresponding to the type implementing {@link
* ExtensionPoint}. The reason this routine is necessary is that the embedded
* XML blob may contain namespace declarations.
*/
protected void generateStartElement(XmlWriter w,
XmlNamespace namespace, String elementName,
Collection<XmlWriter.Attribute> additionalAttrs,
Collection<XmlNamespace> additionalNs) throws IOException {
XmlBlob.startElement(w, namespace, elementName, xmlBlob, additionalAttrs,
additionalNs);
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Generates XML in the Atom format.
*
* @param w
* output writer
*
* @param elementName
* Atom element name
*
* @throws IOException
*/
@Override
public void generateAtom(XmlWriter w,
String elementName) throws IOException {
ArrayList<XmlWriter.Attribute> attrs =
new ArrayList<XmlWriter.Attribute>(2);
attrs.add(new XmlWriter.Attribute("type", "xhtml"));
if (lang != null) {
attrs.add(new XmlWriter.Attribute("xml:lang", lang));
}
XmlBlob.startElement(w, Namespaces.atomNs, elementName, xhtml, attrs, null);
XmlBlob.endElement(w, Namespaces.atomNs, elementName, xhtml);
}
代码示例来源:origin: com.google.gdata/gdata-core-1.0
/**
* Generates XML in the Atom format.
*
* @param w
* output writer
*
* @param elementName
* Atom element name
*
* @throws IOException
*/
@Override
public void generateAtom(XmlWriter w,
String elementName) throws IOException {
ArrayList<XmlWriter.Attribute> attrs =
new ArrayList<XmlWriter.Attribute>(2);
attrs.add(new XmlWriter.Attribute("type", "xhtml"));
if (lang != null) {
attrs.add(new XmlWriter.Attribute("xml:lang", lang));
}
XmlBlob.startElement(w, Namespaces.atomNs, elementName, xhtml, attrs, null);
XmlBlob.endElement(w, Namespaces.atomNs, elementName, xhtml);
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Generates XML in the Atom format.
*
* @param w
* output writer
*
* @param elementName
* Atom element name
*
* @throws IOException
*/
@Override
public void generateAtom(XmlWriter w,
String elementName) throws IOException {
ArrayList<XmlWriter.Attribute> attrs =
new ArrayList<XmlWriter.Attribute>(2);
attrs.add(new XmlWriter.Attribute("type", "xhtml"));
if (lang != null) {
attrs.add(new XmlWriter.Attribute("xml:lang", lang));
}
XmlBlob.startElement(w, Namespaces.atomNs, elementName, xhtml, attrs, null);
XmlBlob.endElement(w, Namespaces.atomNs, elementName, xhtml);
}
代码示例来源:origin: com.google.gdata/gdata-core-1.0
/**
* Reverses {@link #generateCumulativeXmlBlob(ExtensionProfile)}. This
* operation overwrites the current contents of this extension point.
*/
public void parseCumulativeXmlBlob(XmlBlob blob,
ExtensionProfile extProfile,
Class<? extends ExtensionPoint> extendedClass)
throws IOException, ParseException {
this.xmlBlob = new XmlBlob();
nonRepeatingExtensionMap.clear();
repeatingExtensionMap.clear();
// Prepare a fake XML document from the blob.
StringWriter sw = new StringWriter();
XmlWriter w = new XmlWriter(sw);
XmlBlob.startElement(w, null, "CUMULATIVE_BLOB", blob, null, null);
XmlBlob.endElement(w, null, "CUMULATIVE_BLOB", blob);
// Now parse it.
StringReader sr = new StringReader(sw.toString());
XmlParser parser = new XmlParser();
parser.parse(sr, new CumulativeBlobHandler(extProfile, extendedClass), "",
"CUMULATIVE_BLOB");
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Reverses {@link #generateCumulativeXmlBlob(ExtensionProfile)}. This
* operation overwrites the current contents of this extension point.
*/
public void parseCumulativeXmlBlob(XmlBlob blob,
ExtensionProfile extProfile,
Class<? extends ExtensionPoint> extendedClass)
throws IOException, ParseException {
this.xmlBlob = new XmlBlob();
nonRepeatingExtensionMap.clear();
repeatingExtensionMap.clear();
// Prepare a fake XML document from the blob.
StringWriter sw = new StringWriter();
XmlWriter w = new XmlWriter(sw);
XmlBlob.startElement(w, null, "CUMULATIVE_BLOB", blob, null, null);
XmlBlob.endElement(w, null, "CUMULATIVE_BLOB", blob);
// Now parse it.
StringReader sr = new StringReader(sw.toString());
XmlParser parser = new XmlParser();
parser.parse(sr, new CumulativeBlobHandler(extProfile, extendedClass), "",
"CUMULATIVE_BLOB");
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Reverses {@link #generateCumulativeXmlBlob(ExtensionProfile)}. This
* operation overwrites the current contents of this extension point.
*/
public void parseCumulativeXmlBlob(XmlBlob blob,
ExtensionProfile extProfile,
Class<? extends ExtensionPoint> extendedClass)
throws IOException, ParseException {
this.xmlBlob = new XmlBlob();
nonRepeatingExtensionMap.clear();
repeatingExtensionMap.clear();
// Prepare a fake XML document from the blob.
StringWriter sw = new StringWriter();
XmlWriter w = new XmlWriter(sw);
XmlBlob.startElement(w, null, "CUMULATIVE_BLOB", blob, null, null);
XmlBlob.endElement(w, null, "CUMULATIVE_BLOB", blob);
// Now parse it.
StringReader sr = new StringReader(sw.toString());
XmlParser parser = new XmlParser();
parser.parse(sr, new CumulativeBlobHandler(extProfile, extendedClass), "",
"CUMULATIVE_BLOB");
}
代码示例来源:origin: com.google.gdata/gdata-core-1.0
w.endElement(Namespaces.atomNs, "content");
} else if (xml != null) {
XmlBlob.startElement(w, Namespaces.atomNs, "content", xml, attrs, null);
XmlBlob.endElement(w, Namespaces.atomNs, "content", xml);
} else {
代码示例来源:origin: com.google.gdata/gdata-java-client
w.endElement(Namespaces.atomNs, "content");
} else if (xml != null) {
XmlBlob.startElement(w, Namespaces.atomNs, "content", xml, attrs, null);
XmlBlob.endElement(w, Namespaces.atomNs, "content", xml);
} else {
代码示例来源:origin: com.mulesoft.google/google-api-gdata
w.endElement(Namespaces.atomNs, "content");
} else if (xml != null) {
XmlBlob.startElement(w, Namespaces.atomNs, "content", xml, attrs, null);
XmlBlob.endElement(w, Namespaces.atomNs, "content", xml);
} else {
本文整理了Java中com.google.gdata.util.XmlBlob.endElement()方法的一些代码示例,展示了XmlBlob.endElement()的具体用法。这些代码示例主要来
本文整理了Java中com.google.gdata.util.XmlBlob.setLang()方法的一些代码示例,展示了XmlBlob.setLang()的具体用法。这些代码示例主要来源于Gith
本文整理了Java中com.google.gdata.util.XmlBlob.getBase()方法的一些代码示例,展示了XmlBlob.getBase()的具体用法。这些代码示例主要来源于Gith
本文整理了Java中com.google.gdata.util.XmlBlob.setFullText()方法的一些代码示例,展示了XmlBlob.setFullText()的具体用法。这些代码示例主
本文整理了Java中com.google.gdata.util.XmlBlob.setBase()方法的一些代码示例,展示了XmlBlob.setBase()的具体用法。这些代码示例主要来源于Gith
本文整理了Java中com.google.gdata.util.XmlBlob.setBlob()方法的一些代码示例,展示了XmlBlob.setBlob()的具体用法。这些代码示例主要来源于Gith
本文整理了Java中com.google.gdata.util.XmlBlob.getLang()方法的一些代码示例,展示了XmlBlob.getLang()的具体用法。这些代码示例主要来源于Gith
本文整理了Java中com.google.gdata.util.XmlBlob.startElement()方法的一些代码示例,展示了XmlBlob.startElement()的具体用法。这些代码示
本文整理了Java中com.google.gdata.util.XmlBlob.getBlob()方法的一些代码示例,展示了XmlBlob.getBlob()的具体用法。这些代码示例主要来源于Gith
本文整理了Java中com.google.gdata.util.XmlBlob.getNamespaces()方法的一些代码示例,展示了XmlBlob.getNamespaces()的具体用法。这些代
本文整理了Java中com.google.gdata.util.XmlBlob.()方法的一些代码示例,展示了XmlBlob.()的具体用法。这些代码示例主要来源于Github/Stackoverfl
我是一名优秀的程序员,十分优秀!