com.thoughtworks.xstream.io.xml.xppdom.XppFactory.buildDom()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(110)

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

XppFactory.buildDom介绍

[英]Build an XPP DOM hierarchy from an InputStream.
[中]从InputStream构建XPP DOM层次结构。

代码示例

代码示例来源:origin: com.thoughtworks.xstream/xstream

  1. /**
  2. * Build an XPP DOM hierarchy from a String.
  3. *
  4. * @param xml the XML data
  5. * @throws XmlPullParserException if the default parser cannot be created or fails with invalid XML
  6. * @throws IOException if the data cannot be read
  7. * @see XppDom#build(XmlPullParser)
  8. * @since 1.4.1
  9. */
  10. public static XppDom buildDom(String xml) throws XmlPullParserException, IOException {
  11. return buildDom(new StringReader(xml));
  12. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8

  1. /**
  2. * Build an XPP DOM hierarchy from a String.
  3. *
  4. * @param xml the XML data
  5. * @throws XmlPullParserException if the default parser cannot be created or fails with invalid XML
  6. * @throws IOException if the data cannot be read
  7. * @see XppDom#build(XmlPullParser)
  8. * @since 1.4.1
  9. */
  10. public static XppDom buildDom(String xml) throws XmlPullParserException, IOException {
  11. return buildDom(new StringReader(xml));
  12. }

代码示例来源:origin: x-stream/xstream

  1. /**
  2. * Build an XPP DOM hierarchy from a String.
  3. *
  4. * @param xml the XML data
  5. * @throws XmlPullParserException if the default parser cannot be created or fails with invalid XML
  6. * @throws IOException if the data cannot be read
  7. * @see XppDom#build(XmlPullParser)
  8. * @since 1.4.1
  9. */
  10. public static XppDom buildDom(String xml) throws XmlPullParserException, IOException {
  11. return buildDom(new StringReader(xml));
  12. }

代码示例来源:origin: com.haulmont.thirdparty/xstream

  1. /**
  2. * Build an XPP DOM hierarchy from a String.
  3. *
  4. * @param xml the XML data
  5. * @throws XmlPullParserException if the default parser cannot be created or fails with invalid XML
  6. * @throws IOException if the data cannot be read
  7. * @see XppDom#build(XmlPullParser)
  8. * @since 1.4.1
  9. */
  10. public static XppDom buildDom(String xml) throws XmlPullParserException, IOException {
  11. return buildDom(new StringReader(xml));
  12. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream

  1. /**
  2. * Build an XPP DOM hierarchy from a String.
  3. *
  4. * @param xml the XML data
  5. * @throws XmlPullParserException if the default parser cannot be created or fails with invalid XML
  6. * @throws IOException if the data cannot be read
  7. * @see XppDom#build(XmlPullParser)
  8. * @since 1.4.1
  9. */
  10. public static XppDom buildDom(String xml) throws XmlPullParserException, IOException {
  11. return buildDom(new StringReader(xml));
  12. }

代码示例来源:origin: apache/servicemix-bundles

  1. /**
  2. * Build an XPP DOM hierarchy from a String.
  3. *
  4. * @param xml the XML data
  5. * @throws XmlPullParserException if the default parser cannot be created or fails with invalid XML
  6. * @throws IOException if the data cannot be read
  7. * @see XppDom#build(XmlPullParser)
  8. * @since 1.4.1
  9. */
  10. public static XppDom buildDom(String xml) throws XmlPullParserException, IOException {
  11. return buildDom(new StringReader(xml));
  12. }

代码示例来源:origin: org.sonatype.nexus.xstream/xstream

  1. /**
  2. * Build an XPP DOM hierarchy from a String.
  3. *
  4. * @param xml the XML data
  5. * @throws XmlPullParserException if the default parser cannot be created or fails with invalid XML
  6. * @throws IOException if the data cannot be read
  7. * @see XppDom#build(XmlPullParser)
  8. * @since 1.4.1
  9. */
  10. public static XppDom buildDom(String xml) throws XmlPullParserException, IOException {
  11. return buildDom(new StringReader(xml));
  12. }

相关文章