Skip navigation links

Package com.rometools.modules.itunes

This is a ROME plug in that implements the iTunes RSS extensions as defined by Apple in their documentation.

See: Description

Package com.rometools.modules.itunes Description

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.
Skip navigation links