|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.feedparser.DefaultFeedParserListener
org.apache.nutch.parse.rss.FeedParserListenerImpl
public class FeedParserListenerImpl
Feed parser listener class which builds up an RSS Channel model that can be iterated through to retrieve the parsed information.
| Constructor Summary | |
|---|---|
FeedParserListenerImpl()
Default Constructor |
|
| Method Summary | |
|---|---|
List |
getChannels()
Gets a Listof RSSChannels that the listener parsed from
the RSS document. |
void |
onChannel(org.apache.commons.feedparser.FeedParserState state,
String title,
String link,
String description)
Callback method when the parser encounters an RSS Channel. |
void |
onItem(org.apache.commons.feedparser.FeedParserState state,
String title,
String link,
String description,
String permalink)
Callback method when the parser encounters an RSS Item. |
| Methods inherited from class org.apache.commons.feedparser.DefaultFeedParserListener |
|---|
finished, getContext, init, onAuthor, onAuthorEnd, onChannelEnd, onComments, onCommentsEnd, onCommentsFeed, onCommentsFeedEnd, onContent, onContentEncoded, onContentEncodedEnd, onContentEnd, onContentItem, onContentItemEnd, onCopyright, onCopyrightEnd, onCreated, onCreatedEnd, onFeedVersion, onGenerator, onGeneratorEnd, onGUID, onGUIDEnd, onImage, onImageEnd, onIssued, onIssuedEnd, onItemEnd, onLocale, onLocaleEnd, onSubject, onSubjectEnd, onXHTMLBody, onXHTMLBodyEnd, setContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeedParserListenerImpl()
Default Constructor
| Method Detail |
|---|
public List getChannels()
Gets a Listof RSSChannels that the listener parsed from
the RSS document.
Listof RSSChannels.
public void onChannel(org.apache.commons.feedparser.FeedParserState state,
String title,
String link,
String description)
throws org.apache.commons.feedparser.FeedParserException
Callback method when the parser encounters an RSS Channel.
onChannel in interface org.apache.commons.feedparser.FeedParserListeneronChannel in class org.apache.commons.feedparser.DefaultFeedParserListenerstate - The current state of the FeedParser.title - The title of the RSS Channel.link - A hyperlink to the RSS Channel.description - The description of the RSS Channel.
org.apache.commons.feedparser.FeedParserException
public void onItem(org.apache.commons.feedparser.FeedParserState state,
String title,
String link,
String description,
String permalink)
throws org.apache.commons.feedparser.FeedParserException
Callback method when the parser encounters an RSS Item.
onItem in interface org.apache.commons.feedparser.FeedParserListeneronItem in class org.apache.commons.feedparser.DefaultFeedParserListenerstate - The current state of the FeedParser.title - The title of the RSS Item.link - A hyperlink to the RSS Item.description - The description of the RSS Item.permalink - A permanent link to the RSS Item.
org.apache.commons.feedparser.FeedParserException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||