Code example for XmlPullParserFactory

Methods: newPullParser

0
	 */ 
	public static XmlPullParser newPullParser(InputStream input) throws XmlPullParserException {
	    if (sFactory == null) {
	        sFactory = XmlPullParserFactory.newInstance();
	    } 
	    final XmlPullParser parser = sFactory.newPullParser();
	    parser.setInput(input, null);
	    return parser;
	} 
 
	/** 
	 * Parse the given string as a RFC 3339 timestamp, returning the value as 
	 * milliseconds since the epoch. 
	 */ 
	public static long parseTime(String time) {
	    sTime.parse3339(time);
	    return sTime.toMillis(false);
	} 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java