All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rometools.modules.itunes.package.html Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version



  
    
  
  
  
    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.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy