The Source for Java Technology Collaboration

As the new Java.net infrastructure contains project-level wikis, this main wiki will be shut down in the near future. For wiki page export and general wiki questions please contact the site admin at communitymanager@java.net.

Apple iTunes Plug In

This plug in is for use with iTunes Music Service podcast listings.

The latest version is 0.4 available.

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 );

Changes:

0.4

  • Corrected some Feed vs Item attribute issue.
  • Keywords now comma separated instead of space.

0.3

Added support for the "other" case of podcasts. It will now correctly parse all lowercase URIs as wells as the original mixed case URIs All generated feeds use the lowercase URI. Fixed some entity problems related to the apple summary tag.

-- Main.kebernet - 23 Apr 2006

Topic ITunes . { Edit | Ref-By | Printable | Diffs r3 < r2 < r1 | More }
 XML java.net RSS

  

Revision r3 - 2006-08-20 - 22:28:21 - kebernet
Parents: WebHome > Rome > RomeModules