Back to project page AndroidDev.
The source code is released under:
GNU General Public License
If you think the Android project AndroidDev listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.developerworks.android; public abstract class FeedParserFactory { //static String feedUrl = "http://www.androidster.com/android_news.rss"; static String feedUrl = "http://www.volleybal.nl/application/handlers/export.php?format=rss&type=team&programma=8151HS+1&iRegionId=7000"; // w w w . j a v a 2 s. c om public static FeedParser getParser(){ return getParser(ParserType.ANDROID_SAX); } public static FeedParser getParser(ParserType type){ switch (type){ case SAX: return new SaxFeedParser(feedUrl); case DOM: return new DomFeedParser(feedUrl); case ANDROID_SAX: return new AndroidSaxFeedParser(feedUrl); case XML_PULL: return new XmlPullFeedParser(feedUrl); default: return null; } } }