public class RSSFeed
extends java.lang.Object
Constructor and Description |
---|
RSSFeed(java.io.File feedFile,
java.lang.String baseUrl,
MediaDirConfig dirConfig)
The constructor used to create a instance of the RSSFeed object
|
Modifier and Type | Method and Description |
---|---|
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
|
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 configurationpublic void parse() throws java.io.IOException, com.sun.syndication.io.FeedException
java.io.IOException
- Thrown if their is a problem reading the RSS feedcom.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 feedcom.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