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

int[]readThisIntArrayXml(XmlPullParser parser, String endTag, String[] name)
Read an int[] object from an XmlPullParser.
int num;
try {
    num = Integer.parseInt(parser.getAttributeValue(null, "num"));
} catch (NullPointerException e) {
    throw new XmlPullParserException(
            "Need num attribute in byte-array");
} catch (NumberFormatException e) {
    throw new XmlPullParserException(
...
int[]readThisIntArrayXml(XmlPullParser parser, String endTag, String[] name)
Read an int[] object from an XmlPullParser.
int num;
try {
    num = Integer.parseInt(parser.getAttributeValue(null, "num"));
} catch (NullPointerException e) {
    throw new XmlPullParserException(
            "Need num attribute in byte-array");
} catch (NumberFormatException e) {
    throw new XmlPullParserException(
...
ArrayListreadThisListXml(XmlPullParser parser, String endTag, String[] name)
Read an ArrayList object from an XmlPullParser.
ArrayList<Object> list = new ArrayList<Object>();
int eventType = parser.getEventType();
do {
    if (eventType == XmlPullParser.START_TAG) {
        Object val = readThisValueXml(parser, name);
        list.add(val);
    } else if (eventType == XmlPullParser.END_TAG) {
        if (parser.getName().equals(endTag)) {
...
ArrayListreadThisListXml(XmlPullParser parser, String endTag, String[] name)
Read an ArrayList object from an XmlPullParser.
ArrayList list = new ArrayList();
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        Object val = readThisValueXml(parser, name);
        list.add(val);
    } else if (eventType == parser.END_TAG) {
        if (parser.getName().equals(endTag)) {
...
ArrayListreadThisListXml(XmlPullParser parser, String endTag, String[] name)
Read an ArrayList object from an XmlPullParser.
ArrayList list = new ArrayList();
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        Object val = readThisValueXml(parser, name);
        list.add(val);
    } else if (eventType == parser.END_TAG) {
        if (parser.getName().equals(endTag)) {
...
ArrayListreadThisListXml(XmlPullParser parser, String endTag, String[] name)
Read an ArrayList object from an XmlPullParser.
ArrayList list = new ArrayList();
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        Object val = readThisValueXml(parser, name);
        list.add(val);
    } else if (eventType == parser.END_TAG) {
        if (parser.getName().equals(endTag)) {
...
ArrayListreadThisListXml(XmlPullParser parser, String endTag, String[] name)
Read an ArrayList object from an XmlPullParser.
ArrayList list = new ArrayList();
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        Object val = readThisValueXml(parser, name);
        list.add(val);
    } else if (eventType == parser.END_TAG) {
        if (parser.getName().equals(endTag)) {
...
ArrayListreadThisListXml(XmlPullParser parser, String endTag, String[] name)
Read an ArrayList object from an XmlPullParser.
ArrayList list = new ArrayList();
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        Object val = readThisValueXml(parser, name);
        list.add(val);
    } else if (eventType == parser.END_TAG) {
        if (parser.getName().equals(endTag)) {
...
ArrayListreadThisListXml(XmlPullParser parser, String endTag, String[] name)
Read an ArrayList object from an XmlPullParser.
ArrayList list = new ArrayList();
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        Object val = readThisValueXml(parser, name);
        list.add(val);
    } else if (eventType == parser.END_TAG) {
        if (parser.getName().equals(endTag)) {
...
ArrayListreadThisListXml(XmlPullParser parser, String endTag, String[] name)
Read an ArrayList object from an XmlPullParser.
ArrayList list = new ArrayList();
int eventType = parser.getEventType();
do {
    if (eventType == parser.START_TAG) {
        Object val = readThisValueXml(parser, name);
        list.add(val);
    } else if (eventType == parser.END_TAG) {
        if (parser.getName().equals(endTag)) {
...