gpt4 book ai didi

com.google.gdata.util.XmlBlob.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 11:27:05 27 4
gpt4 key购买 nike

本文整理了Java中com.google.gdata.util.XmlBlob.<init>()方法的一些代码示例,展示了XmlBlob.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlBlob.<init>()方法的具体详情如下:
包路径:com.google.gdata.util.XmlBlob
类名称:XmlBlob
方法名:<init>

XmlBlob.<init>介绍

暂无

代码示例

代码示例来源:origin: com.google.gdata/gdata-core-1.0

/** @return the XHTML contents of this text construct */
public XmlBlob getXhtml() {
 if (xhtml == null) {
  xhtml = new XmlBlob();  // init on demand
 }
 return xhtml;
}
/** Specifies the XHTML contents of this text construct. */

代码示例来源:origin: com.google.gdata/gdata-java-client

/** @return the XHTML contents of this text construct */
public XmlBlob getXhtml() {
 if (xhtml == null) {
  xhtml = new XmlBlob();  // init on demand
 }
 return xhtml;
}
/** Specifies the XHTML contents of this text construct. */

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/** @return the XHTML contents of this text construct */
public XmlBlob getXhtml() {
 if (xhtml == null) {
  xhtml = new XmlBlob();  // init on demand
 }
 return xhtml;
}
/** Specifies the XHTML contents of this text construct. */

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Class constructor.
 *
 * @throws IOException
 */
public AtomHandler() throws IOException {
 xhtml = new XmlBlob();
 initializeXmlBlob(xhtml, true, true);
 lang = xmlLang;
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Class constructor.
 *
 * @throws IOException
 */
public AtomHandler() throws IOException {
 xhtml = new XmlBlob();
 initializeXmlBlob(xhtml, true, true);
 lang = xmlLang;
}

代码示例来源:origin: com.google.gdata/gdata-core-1.0

/**
 * Class constructor.
 *
 * @throws IOException
 */
public AtomHandler() throws IOException {
 xhtml = new XmlBlob();
 initializeXmlBlob(xhtml, true, true);
 lang = xmlLang;
}

代码示例来源:origin: com.google.gdata/gdata-core-1.0

/**
 * Class constructor specifying attributes.
 *
 * @throws   IOException
 */
AtomHandler(ExtensionProfile extProfile, Attributes attrs)
  throws IOException {
 this.extProfile = extProfile;
 String typeAttr = attrs.getValue("", "type");
 if ("application/atom+xml;type=feed".equals(typeAttr)) {
  ext = new Feed();
  type = Content.Type.OTHER_XML;
 } else if ("application/atom+xml;type=entry".equals(typeAttr)) {
  type = Content.Type.OTHER_XML;
  ext = new Entry();
 } else if (typeAttr.endsWith("+xml") || typeAttr.endsWith("/xml")) {
  type = Content.Type.OTHER_XML;
  xml = new XmlBlob();
  initializeXmlBlob(xml, true, true);
 } else if (typeAttr.startsWith("text/")) {
  type = Content.Type.OTHER_TEXT;
 } else {
  type = Content.Type.OTHER_BINARY;
 }
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Class constructor specifying attributes.
 *
 * @throws   IOException
 */
AtomHandler(ExtensionProfile extProfile, Attributes attrs)
  throws IOException {
 this.extProfile = extProfile;
 String typeAttr = attrs.getValue("", "type");
 if ("application/atom+xml;type=feed".equals(typeAttr)) {
  ext = new Feed();
  type = Content.Type.OTHER_XML;
 } else if ("application/atom+xml;type=entry".equals(typeAttr)) {
  type = Content.Type.OTHER_XML;
  ext = new Entry();
 } else if (typeAttr.endsWith("+xml") || typeAttr.endsWith("/xml")) {
  type = Content.Type.OTHER_XML;
  xml = new XmlBlob();
  initializeXmlBlob(xml, true, true);
 } else if (typeAttr.startsWith("text/")) {
  type = Content.Type.OTHER_TEXT;
 } else {
  type = Content.Type.OTHER_BINARY;
 }
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Class constructor specifying attributes.
 *
 * @throws   IOException
 */
AtomHandler(ExtensionProfile extProfile, Attributes attrs)
  throws IOException {
 this.extProfile = extProfile;
 String typeAttr = attrs.getValue("", "type");
 if ("application/atom+xml;type=feed".equals(typeAttr)) {
  ext = new Feed();
  type = Content.Type.OTHER_XML;
 } else if ("application/atom+xml;type=entry".equals(typeAttr)) {
  type = Content.Type.OTHER_XML;
  ext = new Entry();
 } else if (typeAttr.endsWith("+xml") || typeAttr.endsWith("/xml")) {
  type = Content.Type.OTHER_XML;
  xml = new XmlBlob();
  initializeXmlBlob(xml, true, true);
 } else if (typeAttr.startsWith("text/")) {
  type = Content.Type.OTHER_TEXT;
 } else {
  type = Content.Type.OTHER_BINARY;
 }
}

代码示例来源:origin: sih4sing5hong5/google-sites-liberation

@Override
public Content parseContent(Element element) {
 checkNotNull(element);
 String href = element.getAttribute("href");
 if (href.equals("")) {
  StringBuilder builder = new StringBuilder();
  NodeList nodeList = element.getChildNodes();
  for (int i = 0; i < nodeList.getLength(); i++) {
   Node child = nodeList.item(i);
   if (child.getNodeType() == Node.ELEMENT_NODE) {
    builder.append(xmlElementOf((Element) child));
   } else if (child.getNodeType() == Node.TEXT_NODE) {
    builder.append(child.getNodeValue());
   }
  }
  XmlBlob xmlBlob = new XmlBlob();
  xmlBlob.setBlob(builder.toString());
  TextContent content = new TextContent();
  content.setContent(new XhtmlTextConstruct(xmlBlob));
  return content;
 }
 OutOfLineContent content = new OutOfLineContent();
 content.setUri(href);
 return content;
}

代码示例来源:origin: sih4sing5hong5/google-sites-liberation

/**
 * Sets the content of the given entry to the given String.
 */
public static void setContent(BaseContentEntry<?> entry, String content) {
 XmlBlob blob = new XmlBlob();
 blob.setBlob(content);
 TextConstruct textConstruct = new XhtmlTextConstruct(blob);
 entry.setContent(textConstruct);
}

代码示例来源:origin: sih4sing5hong5/google-sites-liberation

index = content.indexOf(prefix + "../");
XmlBlob blob = new XmlBlob();
blob.setBlob(content);
TextConstruct textConstruct = new XhtmlTextConstruct(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

/**
 * 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: wso2-attic/esb-connectors

XmlBlob xmlBlob = new XmlBlob();
xmlBlob.setBlob(infoElement.toString());
extendedProperty.setXmlBlob(xmlBlob);

代码示例来源:origin: com.mulesoft.google/google-api-gdata

throws IOException {
XmlBlob cumulative = new XmlBlob();
Collection<XmlNamespace> namespaces = cumulative.getNamespaces();

代码示例来源:origin: com.google.gdata/gdata-java-client

throws IOException {
XmlBlob cumulative = new XmlBlob();
Collection<XmlNamespace> namespaces = cumulative.getNamespaces();

代码示例来源:origin: com.google.gdata/gdata-core-1.0

throws IOException {
XmlBlob cumulative = new XmlBlob();
Collection<XmlNamespace> namespaces = cumulative.getNamespaces();

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com