Package net.hkionline.rss

Examples of net.hkionline.rss.Item


            * This event happens when the parser hits the closing tag of an RSS-feed element.
            * We are interested at item-tags. When they close we want to save the information of the child elements to a new item-object and to the feed itself
            */
           if (event.asEndElement().getName().getLocalPart() == (_item)) {

             Item item = new Item();
            
            
             item.setTitle(title);
             item.setDescription(description);
             item.setLink(link);
             item.setAuthor(author);
             item.setCategory(category);
             item.setEnclosure(enclosure);
             item.setGuid(guid);
             item.setPubDate(pubDate);
             item.setSource(source);
                         
             feed.getItems().add(item);
            
             // We have now saved a new item  to our feed model so we can continue to the next item
             event = eventReader.nextEvent();
View Full Code Here

TOP

Related Classes of net.hkionline.rss.Item

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.