Example usage for org.apache.commons.digester.rss Channel getItems

List of usage examples for org.apache.commons.digester.rss Channel getItems

Introduction

In this page you can find the example usage for org.apache.commons.digester.rss Channel getItems.

Prototype

public Item[] getItems() 

Source Link

Document

Return the items for this channel.

Usage

From source file:com.liusoft.dlog4j.xml.RSSFetcher.java

/**
 * @param args/* ww w  .j a  va2  s. com*/
 * @throws Exception
 */
public static void main(String[] args) throws Exception {
    Channel ch1 = fetchChannelViaHTTP("http://unruledboy.cnblogs.com/Rss.aspx");
    System.out.println(ch1.getTitle());

    for (int i = 0; i < ch1.getItems().length; i++) {
        ChannelItem item = (ChannelItem) ch1.getItems()[i];
        System.out.println(item.getDescription());
    }
}