Android Open Source - wxalert Feed Parser Factory






From Project

Back to project page wxalert.

License

The source code is released under:

Apache License

If you think the Android project wxalert listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.creatuity.wxalert;
/* w  w w  . j a  v a2  s  .c  om*/
public abstract class FeedParserFactory {
  static String feedUrl = "http://www.androidster.com/android_news.rss";
  
  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;
    }
  }
}




Java Source Code List

com.creatuity.wxalert.Alert.java
com.creatuity.wxalert.AndroidSaxFeedParser.java
com.creatuity.wxalert.BaseFeedParser.java
com.creatuity.wxalert.DomFeedParser.java
com.creatuity.wxalert.FeedParserFactory.java
com.creatuity.wxalert.FeedParser.java
com.creatuity.wxalert.MessageList.java
com.creatuity.wxalert.Message.java
com.creatuity.wxalert.ParserType.java
com.creatuity.wxalert.RssHandler.java
com.creatuity.wxalert.SaxFeedParser.java
com.creatuity.wxalert.WeatherAlert.java
com.creatuity.wxalert.XmlPullFeedParser.java