com.thoughtworks.xstream.io.xml.XppDomReader.<init>()方法的使用及代码示例

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

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

XppDomReader.<init>介绍

暂无

代码示例

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

/**
 * {@inheritDoc}
 */
public HierarchicalStreamReader createReader(Reader in) {
  try {
    XmlPullParser parser = createParser();
    parser.setInput(in);
    return new XppDomReader(XppDom.build(parser), getNameCoder());
  } catch (XmlPullParserException e) {
    throw new StreamException(e);
  } catch (IOException e) {
    throw new StreamException(e);
  }
}

代码示例来源:origin: org.jvnet.hudson/xstream

public HierarchicalStreamReader createReader(Reader xml) {
  try {
    return new XppDomReader(Xpp3DomBuilder.build(xml), xmlFriendlyReplacer());
  } catch (Exception e) {
    throw new StreamException(e);
  }
}

代码示例来源:origin: ovea-deprecated/jetty-session-redis

public HierarchicalStreamReader createReader(Reader xml) {
  try {
    return new XppDomReader(Xpp3DomBuilder.build(xml), xmlFriendlyReplacer());
  } catch (Exception e) {
    throw new StreamException(e);
  }
}

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

@Override
public HierarchicalStreamReader createReader(final Reader in) {
  try {
    final XmlPullParser parser = createParser();
    parser.setInput(in);
    return new XppDomReader(XppDom.build(parser), getNameCoder());
  } catch (final XmlPullParserException e) {
    throw new StreamException(e);
  } catch (final IOException e) {
    throw new StreamException(e);
  }
}

代码示例来源:origin: bcdev/beam

@Override
public void marshal(Object source, HierarchicalStreamWriter writer,
          MarshallingContext context) {
  ApplicationData applicationData = (ApplicationData) source;
  writer.addAttribute(ID_ATTRIBUTE_NAME, applicationData.appId);
  XppDom[] children = applicationData.data.getChildren();
  for (XppDom child : children) {
    HierarchicalStreamCopier copier = new HierarchicalStreamCopier();
    XppDomReader reader = new XppDomReader(child);
    copier.copy(reader, writer);
  }
}

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

/**
 * {@inheritDoc}
 */
public HierarchicalStreamReader createReader(Reader in) {
  try {
    XmlPullParser parser = createParser();
    parser.setInput(in);
    return new XppDomReader(XppDom.build(parser), getNameCoder());
  } catch (XmlPullParserException e) {
    throw new StreamException(e);
  } catch (IOException e) {
    throw new StreamException(e);
  }
}

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

/**
 * {@inheritDoc}
 */
public HierarchicalStreamReader createReader(Reader in) {
  try {
    XmlPullParser parser = createParser();
    parser.setInput(in);
    return new XppDomReader(XppDom.build(parser), getNameCoder());
  } catch (XmlPullParserException e) {
    throw new StreamException(e);
  } catch (IOException e) {
    throw new StreamException(e);
  }
}

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

/**
 * {@inheritDoc}
 */
public HierarchicalStreamReader createReader(Reader in) {
  try {
    XmlPullParser parser = createParser();
    parser.setInput(in);
    return new XppDomReader(XppDom.build(parser), getNameCoder());
  } catch (XmlPullParserException e) {
    throw new StreamException(e);
  } catch (IOException e) {
    throw new StreamException(e);
  }
}

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

/**
 * {@inheritDoc}
 */
public HierarchicalStreamReader createReader(Reader in) {
  try {
    XmlPullParser parser = createParser();
    parser.setInput(in);
    return new XppDomReader(XppDom.build(parser), getNameCoder());
  } catch (XmlPullParserException e) {
    throw new StreamException(e);
  } catch (IOException e) {
    throw new StreamException(e);
  }
}

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

/**
 * {@inheritDoc}
 */
public HierarchicalStreamReader createReader(Reader in) {
  try {
    XmlPullParser parser = createParser();
    parser.setInput(in);
    return new XppDomReader(XppDom.build(parser), getNameCoder());
  } catch (XmlPullParserException e) {
    throw new StreamException(e);
  } catch (IOException e) {
    throw new StreamException(e);
  }
}

相关文章