|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.nuiton.rss.RSSIOUtil
public class RSSIOUtil
helper to read or save a feed
| Constructor Summary | |
|---|---|
protected |
RSSIOUtil()
|
| Method Summary | |
|---|---|
protected static com.sun.syndication.feed.synd.SyndFeed |
addItemToFeed(com.sun.syndication.feed.synd.SyndFeed feed,
com.sun.syndication.feed.synd.SyndEntry item,
int nbEntries,
Map<Field,Object> values)
|
static com.sun.syndication.feed.synd.SyndFeed |
createFeed(EnumMap<Field,String> feedProperties,
FeedType type,
Map<Field,Object> values)
|
static com.sun.syndication.feed.synd.SyndEntry |
createFeedItem(EnumMap<Field,String> itemProperties,
Map<Field,Object> values)
|
protected static EnumSet<Field> |
fillFeed(Map<Field,Object> values,
EnumMap<Field,String> feedProperties,
com.sun.syndication.feed.synd.SyndFeed feed,
boolean treateModfied)
|
protected static Object |
getFieldValue(Object dst,
String name)
|
static com.sun.syndication.feed.synd.SyndFeed |
readFeed(URL url)
Load a feed from his url |
static void |
saveFeed(File file,
com.sun.syndication.feed.synd.SyndFeed feed)
save a feed into a file. |
static void |
saveFeed(Writer writer,
com.sun.syndication.feed.synd.SyndFeed feed)
save a feed into a writer. |
protected static void |
setFieldValue(Object dst,
String name,
Object value)
|
static EnumSet<Field> |
updateFeed(com.sun.syndication.feed.synd.SyndFeed feed,
EnumMap<Field,String> feedProperties,
Map<Field,Object> values)
|
static EnumSet<Field> |
updateFeed(URL url,
EnumMap<Field,String> feedProperties,
Map<Field,Object> values)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RSSIOUtil()
| Method Detail |
|---|
public static com.sun.syndication.feed.synd.SyndFeed readFeed(URL url)
throws IllegalArgumentException,
com.sun.syndication.io.FeedException,
IOException
url - location of feed
IllegalArgumentException
com.sun.syndication.io.FeedException
IOException
public static void saveFeed(File file,
com.sun.syndication.feed.synd.SyndFeed feed)
throws IOException,
com.sun.syndication.io.FeedException
file - feed -
IOException
com.sun.syndication.io.FeedException
public static void saveFeed(Writer writer,
com.sun.syndication.feed.synd.SyndFeed feed)
throws IOException,
com.sun.syndication.io.FeedException
writer - feed -
IOException
com.sun.syndication.io.FeedException
public static com.sun.syndication.feed.synd.SyndFeed createFeed(EnumMap<Field,String> feedProperties,
FeedType type,
Map<Field,Object> values)
throws ParseException
ParseException
public static EnumSet<Field> updateFeed(URL url,
EnumMap<Field,String> feedProperties,
Map<Field,Object> values)
throws ParseException,
IllegalArgumentException,
com.sun.syndication.io.FeedException,
IOException
ParseException
IllegalArgumentException
com.sun.syndication.io.FeedException
IOException
public static EnumSet<Field> updateFeed(com.sun.syndication.feed.synd.SyndFeed feed,
EnumMap<Field,String> feedProperties,
Map<Field,Object> values)
throws ParseException,
IllegalArgumentException,
com.sun.syndication.io.FeedException,
IOException
ParseException
IllegalArgumentException
com.sun.syndication.io.FeedException
IOException
protected static com.sun.syndication.feed.synd.SyndFeed addItemToFeed(com.sun.syndication.feed.synd.SyndFeed feed,
com.sun.syndication.feed.synd.SyndEntry item,
int nbEntries,
Map<Field,Object> values)
throws IOException,
IllegalArgumentException,
com.sun.syndication.io.FeedException,
ParseException
IOException
IllegalArgumentException
com.sun.syndication.io.FeedException
ParseException
public static com.sun.syndication.feed.synd.SyndEntry createFeedItem(EnumMap<Field,String> itemProperties,
Map<Field,Object> values)
throws ParseException
ParseException
protected static EnumSet<Field> fillFeed(Map<Field,Object> values,
EnumMap<Field,String> feedProperties,
com.sun.syndication.feed.synd.SyndFeed feed,
boolean treateModfied)
throws ParseException
ParseException
protected static void setFieldValue(Object dst,
String name,
Object value)
protected static Object getFieldValue(Object dst,
String name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||