List of utility methods to do XmlPullParser Read
Object | readValueXml(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) { ... |
Object | readValueXml(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) { ... |
Object | readValueXml(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) { ... |
Object | readValueXml(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) { ... |
Object | readValueXml(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) { ... |
Object | readValueXml(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) { ... |
Object | readValueXml(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) { ... |
boolean | Read(XmlPullParser parser) Read if (parser == null) throw new NullPointerException(); if (parser.getEventType() == XmlPullParser.END_DOCUMENT) return false; parser.nextToken(); return true; |
String | ReadSubtreeString(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) { ... |