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

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

Introduction

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

Prototype

public String getTitle() 

Source Link

Usage

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

/**
 * @param args/*from  www  . j a  v a2 s . c  o m*/
 * @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());
    }
}