Here you can find the source of Read(XmlPullParser parser)
public static boolean Read(XmlPullParser parser) throws XmlPullParserException, IOException
//package com.java2s; //License from project: Open Source License import java.io.IOException; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; public class Main { public static boolean Read(XmlPullParser parser) throws XmlPullParserException, IOException { if (parser == null) throw new NullPointerException(); if (parser.getEventType() == XmlPullParser.END_DOCUMENT) return false; parser.nextToken();//from w w w. j a v a 2 s. co m return true; } }