Deprecated
as a consequence of AbstractPullReader being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private final XmlPullParser | |
| private final Reader |
| Access | Constructor and Description |
|---|---|
| public | XppReader(Reader
the reader with the input data reader, XmlPullParser the XPP parser to use parser)Construct an XppReader. |
| public | XppReader(Reader
the reader with the input data reader, XmlPullParser the XPP parser to use parser, NameCoder the coder for XML friendly tag and attribute names nameCoder)Construct an XppReader. |
| public | |
| public | XppReader(Reader reader, XmlFriendlyReplacer replacer)
Deprecated
As of 1.4, use
XppReader(Reader, XmlPullParser, NameCoder) instead
|
| Modifier and Type | Method and Description |
|---|---|
| public void | appendErrors(ErrorWriter
the error writer errorWriter)Implements com. |
| public void | close()
Implements com. |
| protected XmlPullParser | createParser()
Deprecated
As of 1.4, use
To use another implementation of org.xmlpull.v1.XmlPullParser, override this method.
XppReader(Reader, XmlPullParser) instead
|
| public String | getAttribute(String name)
Implements com. |
| public String | getAttribute(int index)
Implements com. |
| public int | getAttributeCount()
Implements com. |
| public String | getAttributeName(int index)
Implements com. |
| protected String | pullElementName()
Implements abstract com. |
| protected int | pullNextEvent()
Implements abstract com. |
| protected String | pullText()
Implements abstract com. |
| parser | back to summary |
|---|---|
| private final XmlPullParser parser | |
| reader | back to summary |
|---|---|
| private final Reader reader | |
| XppReader | back to summary |
|---|---|
| public XppReader(Reader reader, XmlPullParser parser) Construct an XppReader.
| |
| XppReader | back to summary |
|---|---|
| public XppReader(Reader reader, XmlPullParser parser, NameCoder nameCoder) Construct an XppReader.
| |
| XppReader | back to summary |
|---|---|
| public XppReader(Reader reader)
Deprecated As of 1.4, use | |
| XppReader | back to summary |
|---|---|
| public XppReader(Reader reader, XmlFriendlyReplacer replacer)
Deprecated As of 1.4, use
| |
| appendErrors | back to summary |
|---|---|
| public void appendErrors(ErrorWriter errorWriter) Implements com. Doc from com. If any errors are detected, allow the reader to add any additional information that can aid debugging (such as line numbers, XPath expressions, etc).
| |
| close | back to summary |
|---|---|
| public void close() Implements com. Doc from com. Close the reader, if necessary. | |
| createParser | back to summary |
|---|---|
| protected XmlPullParser createParser()
Deprecated As of 1.4, use To use another implementation of org.xmlpull.v1.XmlPullParser, override this method. | |
| getAttribute | back to summary |
|---|---|
| public String getAttribute(String name) Implements com. Doc from com. Get the value of an attribute of the current node. If no such attribute exists, the method returns null. | |
| getAttribute | back to summary |
|---|---|
| public String getAttribute(int index) Implements com. Doc from com. Get the value of an attribute of the current node, by index. Note, the behavior of this method is dependent on the underlying parser when calling it with a non-existing index. Typically some kind of RuntimeException is thrown. | |
| getAttributeCount | back to summary |
|---|---|
| public int getAttributeCount() Implements com. Doc from com. Number of attributes in current node. | |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName(int index) Implements com. Doc from com. Name of attribute in current node. Note, the behavior of this method is dependent on the underlying parser when calling it with a non-existing index. Typically some kind of RuntimeException is thrown. | |
| pullElementName | back to summary |
|---|---|
| protected String pullElementName() Implements abstract com. Doc from com. Pull the name of the current element from the stream. | |
| pullNextEvent | back to summary |
|---|---|
| protected int pullNextEvent() Implements abstract com. Doc from com. Pull the next event from the stream. This MUST return The underlying pull parser will most likely return its own event types. These must be mapped to the appropriate events. | |
| pullText | back to summary |
|---|---|
| protected String pullText() Implements abstract com. Doc from com. Pull the contents of the current text node from the stream. | |