public T parseFeed ( ) throws IOException , XmlPullParserException { boolean close = true ; try { this . feedParsed = true ; T result = Types . newInstance ( feedClass ) ; Xml . parseElement ( parser , result , namespaceDictionary , Atom . StopAtAtomEntry . INSTANCE ) ; close = false ; return result ; } finally { if ( close ) { close ( ) ; } } }
Parse the feed and return a new parsed instance of the feed type . This method can be skipped if all you want are the items .