|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.actions.podcast.RSSFeed
public class RSSFeed
This class is used to create and update RSS feeds used to store the pod cast details
Constructor Summary | |
---|---|
RSSFeed(java.io.File feedFile,
java.lang.String baseUrl,
MediaDirConfig dirConfig)
The constructor used to create a instance of the RSSFeed object |
Method Summary | |
---|---|
void |
addEntry(IFeedFile file)
Used to add a pod cast entry to the RSS feed |
void |
createNewFeed()
Used to create a new feed |
java.util.List<IFeedFile> |
getEntries()
Used to get the entries form the feed. |
void |
parse()
Used to parse the RSS feed |
void |
setArtwork(java.net.URL imageUrl)
Used to set the feeds artwork |
void |
setDescription(java.lang.String description)
Used to set the feeds description |
void |
setLink(java.net.URL link)
Used to set the feeds link |
void |
setMaxEntries(long maxEntries,
java.io.File rssDir)
Used to set the maximum number of entries in the feed. |
void |
setTitle(java.lang.String title)
Used to set the feeds title |
void |
write()
Write the RSS feed to a file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RSSFeed(java.io.File feedFile, java.lang.String baseUrl, MediaDirConfig dirConfig)
feedFile
- The file used to store the pod cast RSS feedbaseUrl
- The base URL of the feeddirConfig
- The media directory configurationMethod Detail |
---|
public void parse() throws java.io.IOException, com.sun.syndication.io.FeedException
java.io.IOException
- Thrown if their is a problem reading the RSS feed
com.sun.syndication.io.FeedException
- Thrown if their is a problem parsing the RSS feedpublic void createNewFeed()
public void setTitle(java.lang.String title)
title
- The title of the feedpublic void setLink(java.net.URL link)
link
- The link to the feedpublic void setDescription(java.lang.String description)
description
- A plain text description of the feeds contentspublic void setArtwork(java.net.URL imageUrl)
imageUrl
- A URL to the feeds cover artworkpublic void write() throws java.io.IOException, com.sun.syndication.io.FeedException
java.io.IOException
- Thrown if their is a problem reading the RSS feed
com.sun.syndication.io.FeedException
- Thrown if their is a problem parsing the RSS feedpublic java.util.List<IFeedFile> getEntries() throws ActionException
ActionException
- Thrown if their are any problemspublic void addEntry(IFeedFile file)
file
- The feed file to add to the RSS feedpublic void setMaxEntries(long maxEntries, java.io.File rssDir)
maxEntries
- Maximum number of entriesrssDir
- The directory containing the RSS directory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |