本文整理了Java中com.thoughtworks.xstream.io.xml.XppDomReader
类的一些代码示例,展示了XppDomReader
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XppDomReader
类的具体详情如下:
包路径:com.thoughtworks.xstream.io.xml.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));
}
内容来源于网络,如有侵权,请联系作者删除!