org.apache.commons.feedparser
Interface FeedLifecycleListener

All Known Subinterfaces:
FeedDirectoryParserListener, FeedParserListener, FOAFFeedParserListener
All Known Implementing Classes:
CaptureOutputFeedParserListener, DebugFeedParserListener, DefaultFeedDirectoryParserListener, DefaultFeedParserListener, RSS10_OutputFeedParserListener, Test

public interface FeedLifecycleListener

Version:
$Id: FeedLifecycleListener.java 373614 2006-01-30 22:31:21Z mvdb $
Author:
Kevin A. Burton (burtonator)

Method Summary
 void finished()
          Called when the feed has finished parsing.
 Object getContext()
           
 void init()
          Called prior to event parsing to signal the parsing of a new feed.
 void setContext(Object context)
          Set this context that this FeedParserListener is executing within.
 

Method Detail

init

void init()
          throws FeedParserException
Called prior to event parsing to signal the parsing of a new feed.

Throws:
FeedParserListener - Possibly wraping another exception
FeedParserException

setContext

void setContext(Object context)
                throws FeedParserException
Set this context that this FeedParserListener is executing within. This can be used with anonymous listeners to pass contextual information about threads they are working within, etc.

Throws:
FeedParserException

getContext

Object getContext()
                  throws FeedParserException
Throws:
FeedParserException

finished

void finished()
              throws FeedParserException
Called when the feed has finished parsing.

Throws:
FeedParserException


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