Author: tchemit Date: 2008-04-24 12:42:05 +0000 (Thu, 24 Apr 2008) New Revision: 5 Modified: trunk/lutinrss/src/main/java/org/codelutin/rss/FeedData.java Log: ajout constructeur pour ne pas ?\195?\160 avoir ?\195?\160 manipuler des FeedRendererConfig depuis l'ext?\195?\169rieur + javadoc Modified: trunk/lutinrss/src/main/java/org/codelutin/rss/FeedData.java =================================================================== --- trunk/lutinrss/src/main/java/org/codelutin/rss/FeedData.java 2008-04-22 13:18:07 UTC (rev 4) +++ trunk/lutinrss/src/main/java/org/codelutin/rss/FeedData.java 2008-04-24 12:42:05 UTC (rev 5) @@ -1,12 +1,10 @@ package org.codelutin.rss; -import com.sun.syndication.feed.synd.SyndEntry; import com.sun.syndication.feed.synd.SyndFeed; import com.sun.syndication.io.SyndFeedInput; import com.sun.syndication.io.XmlReader; import java.net.URL; -import java.util.Iterator; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -39,7 +37,13 @@ protected SyndFeed feed = null; protected long lastRetrived = 0; - + + public FeedData(URL url, int nbItem, String representation) { + this(url); + this.nbItem = nbItem; + this.rendererConfig = new FeedRendererConfig(representation); + } + public FeedData(URL url) { this.url = url; } @@ -67,7 +71,7 @@ /** * Retourne la representation HTML du RSS * - * @return + * @return la representation HTML du RSS */ public SyndFeed getFeed() { if (feed == null || lastRetrived + RSSConfig.TIME_FORCE_RETRIEVED < System.currentTimeMillis()) {