Package com.rometools.modules.itunes
This is a ROME plug in that implements the iTunes RSS extensions as defined
by Apple in their
documentation. BTW, an anti-shoutout to Apple for moving the original
PDF spec
. Thanks for making it harder than it needed to be.
Sample Usage:
SyndFeedInput input = new SyndFeedInput();
SyndFeed syndfeed = input.build(new XmlReader(feed.toURL()));
Module module = syndfeed.getModule("http://www.itunes.com/DTDs/Podcast-1.0.dtd");
FeedInformation feedInfo = (FeedInformation) module;
System.out.println( feedInfo.getImage() );
System.out.println( feedInfo.getCategory() );
// Or to create a feed..
ArrayList modules = new ArrayList();
EntryInformation e = new EntryInformationImpl();
e.setDuration( new Duration( 10000 ) );
modules.add( e );
syndEntry.setModules( modules );
Similarly you can get an EntryInformation object off SyndEntries or Items.-
Interface Summary Interface Description EntryInformation This class contains information for iTunes podcast feeds that exist at the Item level.FeedInformation This class contains information for iTunes podcast feeds that exist at the Channel level.ITunes This interface contains the methods common to all iTunes module points. -
Class Summary Class Description AbstractITunesObject This is an abstract object that implements the attributes common across Feeds or Items in an iTunes compatible RSS feed.EntryInformationImpl This class contains information for iTunes podcast feeds that exist at the Item level.FeedInformationImpl This class contains information for iTunes podcast feeds that exist at the Channel level.