Android Utililty Methods XmlPullParser Read

List of utility methods to do XmlPullParser Read

Description

The list of methods to do XmlPullParser Read are organized into topic(s).

Method

ObjectreadValueXml(XmlPullParser parser, String[] name)
Read a flattened object from an XmlPullParser.
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        return readThisValueXml(parser, name);
    } else if (eventType == parser.END_TAG) {
        throw new XmlPullParserException("Unexpected end tag at: "
                + parser.getName());
    } else if (eventType == parser.TEXT) {
...
ObjectreadValueXml(XmlPullParser parser, String[] name)
Read a flattened object from an XmlPullParser.
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        return readThisValueXml(parser, name);
    } else if (eventType == parser.END_TAG) {
        throw new XmlPullParserException("Unexpected end tag at: "
                + parser.getName());
    } else if (eventType == parser.TEXT) {
...
ObjectreadValueXml(XmlPullParser parser, String[] name)
Read a flattened object from an XmlPullParser.
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        return readThisValueXml(parser, name);
    } else if (eventType == parser.END_TAG) {
        throw new XmlPullParserException("Unexpected end tag at: "
                + parser.getName());
    } else if (eventType == parser.TEXT) {
...
ObjectreadValueXml(XmlPullParser parser, String[] name)
Read a flattened object from an XmlPullParser.
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        return readThisValueXml(parser, name);
    } else if (eventType == parser.END_TAG) {
        throw new XmlPullParserException("Unexpected end tag at: "
                + parser.getName());
    } else if (eventType == parser.TEXT) {
...
ObjectreadValueXml(XmlPullParser parser, String[] name)
Read a flattened object from an XmlPullParser.
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        return readThisValueXml(parser, name);
    } else if (eventType == parser.END_TAG) {
        throw new XmlPullParserException("Unexpected end tag at: "
                + parser.getName());
    } else if (eventType == parser.TEXT) {
...
ObjectreadValueXml(XmlPullParser parser, String[] name)
read Value Xml
int eventType = parser.getEventType();
do {
    if (eventType == XmlPullParser.START_TAG) {
        return readThisValueXml(parser, name);
    } else if (eventType == XmlPullParser.END_TAG) {
        throw new XmlPullParserException("Unexpected end tag at: "
                + parser.getName());
    } else if (eventType == XmlPullParser.TEXT) {
...
ObjectreadValueXml(XmlPullParser parser, String[] name)
Read a flattened object from an XmlPullParser.
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        return readThisValueXml(parser, name);
    } else if (eventType == parser.END_TAG) {
        throw new XmlPullParserException("Unexpected end tag at: "
                + parser.getName());
    } else if (eventType == parser.TEXT) {
...
booleanRead(XmlPullParser parser)
Read
if (parser == null)
    throw new NullPointerException();
if (parser.getEventType() == XmlPullParser.END_DOCUMENT)
    return false;
parser.nextToken();
return true;
StringReadSubtreeString(XmlPullParser reader)
Read Subtree String
if (reader == null)
    throw new NullPointerException();
if (reader.getEventType() != XmlPullParser.START_TAG)
    return "";
StringBuilder builder = new StringBuilder();
int depth = GetDepth(reader);
while (GetDepth(reader) != depth
        || reader.getEventType() != XmlPullParser.END_TAG) {
...