org.apache.commons.feedparser.impl
Class CaptureOutputFeedParserListener

java.lang.Object
  extended by org.apache.commons.feedparser.DefaultFeedParserListener
      extended by org.apache.commons.feedparser.impl.DebugFeedParserListener
          extended by org.apache.commons.feedparser.impl.CaptureOutputFeedParserListener
All Implemented Interfaces:
ContentFeedParserListener, FeedDirectoryParserListener, FeedLifecycleListener, FeedParserListener, LinkFeedParserListener, MetaFeedParserListener, ModContentFeedParserListener, TagFeedParserListener, XHTMLFeedParserListener

public class CaptureOutputFeedParserListener
extends DebugFeedParserListener

Code which can run a parse but capture the output to a string to verify certain methods were called via greping the output. This is ONLY for unit tests. When done you can just call toString() to get the output of all the events and then grep across it.

Version:
$Id: CaptureOutputFeedParserListener.java 373622 2006-01-30 22:53:00Z mvdb $
Author:
Kevin A. Burton (burtonator)

Constructor Summary
CaptureOutputFeedParserListener()
           
 
Method Summary
 String toString()
           
 
Methods inherited from class org.apache.commons.feedparser.impl.DebugFeedParserListener
finished, init, onAuthor, onChannel, onChannelEnd, onComments, onCommentsFeed, onContent, onContentEncoded, onContentItem, onCreated, onFeedVersion, onFolder, onFolderEnd, onGUID, onImage, onImageEnd, onItem, onItemEnd, onLink, onLocale, onLocaleEnd, onRelation, onRelationEnd, onTag, onTagEnd, setContext
 
Methods inherited from class org.apache.commons.feedparser.DefaultFeedParserListener
getContext, onAuthorEnd, onCommentsEnd, onCommentsFeedEnd, onContentEncodedEnd, onContentEnd, onContentItemEnd, onCopyright, onCopyrightEnd, onCreatedEnd, onGenerator, onGeneratorEnd, onGUIDEnd, onIssued, onIssuedEnd, onSubject, onSubjectEnd, onXHTMLBody, onXHTMLBodyEnd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.commons.feedparser.FeedLifecycleListener
getContext
 
Methods inherited from interface org.apache.commons.feedparser.MetaFeedParserListener
onAuthorEnd, onCommentsEnd, onCommentsFeedEnd, onCopyright, onCopyrightEnd, onCreatedEnd, onGenerator, onGeneratorEnd, onGUIDEnd, onIssued, onIssuedEnd, onSubject, onSubjectEnd
 
Methods inherited from interface org.apache.commons.feedparser.ModContentFeedParserListener
onContentEncodedEnd, onContentItemEnd
 

Constructor Detail

CaptureOutputFeedParserListener

public CaptureOutputFeedParserListener()
Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.