1 17 package com.sun.syndication.io.impl; 18 19 import com.sun.syndication.feed.rss.Description; 20 import org.jdom.Element; 21 22 24 public class RSS20Parser extends RSS094Parser { 25 26 public RSS20Parser() { 27 this("rss_2.0"); 28 } 29 30 protected RSS20Parser(String type) { 31 super(type); 32 } 33 34 protected String getRSSVersion() { 35 return "2.0"; 36 } 37 38 protected boolean isHourFormat24(Element rssRoot) { 39 return false; 40 } 41 42 protected Description parseItemDescription(Element rssRoot,Element eDesc) { 43 Description desc = super.parseItemDescription(rssRoot,eDesc); 44 desc.setType("text/plain"); return desc; 46 } 47 48 } 49 | Popular Tags |