public class XppReader extends AbstractPullReader
COMMENT, END_NODE, OTHER, START_NODE, TEXT| Constructor and Description |
|---|
XppReader(Reader reader) |
XppReader(Reader reader,
XmlFriendlyReplacer replacer) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendErrors(ErrorWriter errorWriter)
If any errors are detected, allow the reader to add any additional information that can aid debugging
(such as line numbers, XPath expressions, etc).
|
void |
close()
Close the reader, if necessary.
|
protected org.xmlpull.v1.XmlPullParser |
createParser()
To use another implementation of org.xmlpull.v1.XmlPullParser, override this method.
|
String |
getAttribute(int index)
Get the value of an attribute of the current node, by index.
|
String |
getAttribute(String name)
Get the value of an attribute of the current node.
|
int |
getAttributeCount()
Number of attributes in current node.
|
String |
getAttributeName(int index)
Name of attribute in current node.
|
protected String |
pullElementName()
Pull the name of the current element from the stream.
|
protected int |
pullNextEvent()
Pull the next event from the stream.
|
protected String |
pullText()
Pull the contents of the current text node from the stream.
|
getAttributeNames, getNodeName, getValue, hasMoreChildren, mark, moveDown, moveUp, reset, underlyingReaderunescapeXmlNamepublic XppReader(Reader reader)
public XppReader(Reader reader, XmlFriendlyReplacer replacer)
protected org.xmlpull.v1.XmlPullParser createParser()
protected int pullNextEvent()
AbstractPullReaderThis MUST return AbstractPullReader.START_NODE, AbstractPullReader.END_NODE, AbstractPullReader.TEXT, AbstractPullReader.COMMENT,
AbstractPullReader.OTHER or throw StreamException.
The underlying pull parser will most likely return its own event types. These must be mapped to the appropriate events.
pullNextEvent in class AbstractPullReaderprotected String pullElementName()
AbstractPullReaderpullElementName in class AbstractPullReaderprotected String pullText()
AbstractPullReaderpullText in class AbstractPullReaderpublic String getAttribute(String name)
HierarchicalStreamReaderpublic String getAttribute(int index)
HierarchicalStreamReaderpublic int getAttributeCount()
HierarchicalStreamReaderpublic String getAttributeName(int index)
HierarchicalStreamReaderpublic void appendErrors(ErrorWriter errorWriter)
HierarchicalStreamReaderpublic void close()
HierarchicalStreamReaderCopyright © 2021 Internet2. All rights reserved.