|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.feedparser.DefaultFeedParserListener org.apache.commons.feedparser.Test
public class Test
This FeedParser implementation is based on JDOM and Jaxen and is based around XPath and JDOM iteration. While the implementation is straight forward it has not been optimized for performance. A SAX based parser would certainly be less memory intensive but with the downside of being harder to develop.
Constructor Summary | |
---|---|
Test()
|
Method Summary | |
---|---|
void |
finished()
Called when the feed has finished parsing. |
void |
init()
Called prior to event parsing to signal the parsing of a new feed. |
static void |
main(String[] args)
|
void |
onChannel(FeedParserState state,
String title,
String link,
String description)
Called when a channel item is found. |
void |
onChannelEnd()
|
void |
onContentEncoded(FeedParserState state,
String value)
|
void |
onContentEncodedEnd()
|
void |
onContentItem(FeedParserState state,
String format,
String encoding,
org.jdom.Element value)
|
void |
onContentItemEnd()
|
void |
onImage(FeedParserState state,
String title,
String link,
String url)
Called when an RSS image is found. |
void |
onImageEnd()
|
void |
onItem(FeedParserState state,
String title,
String link,
String description,
String permalink)
Called when an RSS item or Atom entry is found. |
void |
onItemEnd()
|
void |
onXHTMLBody(FeedParserState state,
org.jdom.Element value)
|
void |
onXHTMLBodyEnd()
|
void |
setContext(Object context)
Set this context that this FeedParserListener is executing within. |
Methods inherited from class org.apache.commons.feedparser.DefaultFeedParserListener |
---|
getContext, onAuthor, onAuthorEnd, onComments, onCommentsEnd, onCommentsFeed, onCommentsFeedEnd, onContent, onContentEnd, onCopyright, onCopyrightEnd, onCreated, onCreatedEnd, onFeedVersion, onGenerator, onGeneratorEnd, onGUID, onGUIDEnd, onIssued, onIssuedEnd, onLocale, onLocaleEnd, onSubject, onSubjectEnd |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.feedparser.FeedParserListener |
---|
onFeedVersion |
Methods inherited from interface org.apache.commons.feedparser.FeedLifecycleListener |
---|
getContext |
Constructor Detail |
---|
public Test()
Method Detail |
---|
public void init()
init
in interface FeedLifecycleListener
init
in class DefaultFeedParserListener
public void setContext(Object context)
FeedLifecycleListener
setContext
in interface FeedLifecycleListener
setContext
in class DefaultFeedParserListener
public void onChannel(FeedParserState state, String title, String link, String description)
onChannel
in interface FeedParserListener
onChannel
in class DefaultFeedParserListener
public void onChannelEnd()
onChannelEnd
in interface FeedParserListener
onChannelEnd
in class DefaultFeedParserListener
public void onImage(FeedParserState state, String title, String link, String url)
onImage
in interface FeedParserListener
onImage
in class DefaultFeedParserListener
public void onImageEnd()
onImageEnd
in interface FeedParserListener
onImageEnd
in class DefaultFeedParserListener
public void onItem(FeedParserState state, String title, String link, String description, String permalink)
onItem
in interface FeedParserListener
onItem
in class DefaultFeedParserListener
public void onItemEnd()
onItemEnd
in interface FeedParserListener
onItemEnd
in class DefaultFeedParserListener
public void finished()
FeedLifecycleListener
finished
in interface FeedLifecycleListener
finished
in class DefaultFeedParserListener
public void onContentEncoded(FeedParserState state, String value)
onContentEncoded
in interface ModContentFeedParserListener
onContentEncoded
in class DefaultFeedParserListener
public void onContentEncodedEnd()
onContentEncodedEnd
in interface ModContentFeedParserListener
onContentEncodedEnd
in class DefaultFeedParserListener
public void onContentItem(FeedParserState state, String format, String encoding, org.jdom.Element value)
onContentItem
in interface ModContentFeedParserListener
onContentItem
in class DefaultFeedParserListener
public void onContentItemEnd()
onContentItemEnd
in interface ModContentFeedParserListener
onContentItemEnd
in class DefaultFeedParserListener
public void onXHTMLBody(FeedParserState state, org.jdom.Element value)
onXHTMLBody
in interface XHTMLFeedParserListener
onXHTMLBody
in class DefaultFeedParserListener
public void onXHTMLBodyEnd()
onXHTMLBodyEnd
in interface XHTMLFeedParserListener
onXHTMLBodyEnd
in class DefaultFeedParserListener
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |