Code example for XmlPullParserFactory

Methods: newPullParser

0
        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);
    } 
 
    /** 
     * Return a {@link Blocks#BLOCK_ID} matching the requested arguments. 
     */ 
    public static String findBlock(String title, long startTime, long endTime) {