1 17 package com.sun.syndication.feed.synd.impl; 18 19 import com.sun.syndication.feed.rss.Item; 20 import com.sun.syndication.feed.synd.SyndEntry; 21 22 import java.util.Date ; 23 24 26 public class ConverterForRSS093 extends ConverterForRSS092 { 27 28 public ConverterForRSS093() { 29 this("rss_0.93"); 30 } 31 32 protected ConverterForRSS093(String type) { 33 super(type); 34 } 35 36 protected SyndEntry createSyndEntry(Item item) { 37 SyndEntry syndEntry = super.createSyndEntry(item); 38 Date pubDate = item.getPubDate(); 39 if (pubDate!=null) { 40 syndEntry.setPublishedDate(pubDate); } 42 return syndEntry; 43 } 44 45 protected Item createRSSItem(SyndEntry sEntry) { 46 Item item = super.createRSSItem(sEntry); 47 item.setPubDate(sEntry.getPublishedDate()); return item; 49 } 50 51 } 52 | Popular Tags |