public static < T , E > MultiKindFeedParser < T > create ( HttpResponse response , XmlNamespaceDictionary namespaceDictionary , Class < T > feedClass , Class < E > ... entryClasses ) throws IOException , XmlPullParserException { InputStream content = response . getContent ( ) ; try { Atom . checkContentType ( response . getContentType ( ) ) ; XmlPullParser parser = Xml . createParser ( ) ; parser . setInput ( content , null ) ; MultiKindFeedParser < T > result = new MultiKindFeedParser < T > ( namespaceDictionary , parser , content , feedClass ) ; result . setEntryClasses ( entryClasses ) ; return result ; } finally { content . close ( ) ; } }
Parses the given HTTP response using the given feed class and entry classes .