com.thoughtworks.xstream.io.xml.XppDomReader类的使用及代码示例

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

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

XppDomReader介绍

暂无

代码示例

代码示例来源: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: com.thoughtworks.xstream/xstream

public String getAttributeName(int index) {
  return decodeAttribute(currentElement.getAttributeNames()[index]);
}

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

public String getNodeName() {
  return decodeNode(currentElement.getName());
}

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

public String getAttribute(String attributeName) {
  return currentElement.getAttribute(encodeAttribute(attributeName));
}

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

public String getNodeName() {
  return unescapeXmlName(currentElement.getName());
}

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

@Override
public String getAttribute(final String attributeName) {
  return currentElement.getAttribute(encodeAttribute(attributeName));
}

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

public String getAttributeName(int index) {
  return unescapeXmlName(currentElement.getAttributeNames()[index]);
}

代码示例来源: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: com.thoughtworks.xstream/xstream

public String peekNextChild() {
  if (currentElement.getChildCount() == 0) {
    return null;
  }
  return decodeNode(currentElement.getChild(0).getName());
}

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

public String getAttribute(String attributeName) {
  return currentElement.getAttribute(encodeAttribute(attributeName));
}

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

@Override
public String getAttributeName(final int index) {
  return decodeAttribute(currentElement.getAttributeNames()[index]);
}

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

public String getNodeName() {
  return unescapeXmlName(currentElement.getName());
}

代码示例来源: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 String getNodeName() {
  return decodeNode(currentElement.getName());
}

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

public String getAttribute(String attributeName) {
  return currentElement.getAttribute(encodeAttribute(attributeName));
}

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

public String getAttributeName(int index) {
  return decodeAttribute(currentElement.getAttributeNames()[index]);
}

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

public String getAttributeName(int index) {
  return unescapeXmlName(currentElement.getAttributeNames()[index]);
}

代码示例来源: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: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream

public String getNodeName() {
  return decodeNode(currentElement.getName());
}

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

public String getAttribute(String attributeName) {
  return currentElement.getAttribute(encodeAttribute(attributeName));
}

相关文章