|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.musicontroller.rss.RssDAO
public class RssDAO
Class for reading and writing PodCast-RSS.
Constructor Summary | |
---|---|
RssDAO()
|
Method Summary | |
---|---|
void |
merge(Playlist original,
Playlist fromrss)
Merges two Playlists. |
Playlist |
readPlaylistFromRss(java.io.InputStream in)
Reads an InputStream (which has to contain a podcast-rss stream), converts it into a Playlist. |
Playlist |
readPlaylistFromRss(java.lang.String url)
Reads a Playlist from a URL, which contains a podcast-rss. |
void |
setDao(Dao dao)
Set the MusiController-dao, which is used for looking up songs and playlists. |
void |
updatePlaylist(long playlistid)
Updates a Playlist with the latest info from the Podcast. |
void |
writePlaylistRSS(Playlist playlist,
java.io.OutputStream out,
MetadataProvider provider)
Writes a Playlist to an Outputstream as a Podcast-xml. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RssDAO()
Method Detail |
---|
public Playlist readPlaylistFromRss(java.io.InputStream in)
in
- The inputstream to read the rss from.
public Playlist readPlaylistFromRss(java.lang.String url)
url
- The URL to read from.
public void writePlaylistRSS(Playlist playlist, java.io.OutputStream out, MetadataProvider provider)
playlist
- The Playlist to export.out
- The Stream to write the XML data to.provider
- The Provider for metadata to this Playlist and its Songs.public void setDao(Dao dao)
dao
- The Dao.public void merge(Playlist original, Playlist fromrss)
original
- The original-Playlist.fromrss
- The Playlist that resulted from downloading a Podcast.public void updatePlaylist(long playlistid)
playlistid
- The id of the Playlist to update.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |