org.clapper.curn.parser
Class RSSParserFactory

java.lang.Object
  extended by org.clapper.curn.parser.RSSParserFactory

public class RSSParserFactory
extends java.lang.Object

This class provides a factory for retrieving a specific RSS parser implementation.

Version:
$Revision: 6447 $
See Also:
RSSParser, RSSChannel, RSSItem

Method Summary
static RSSParser getRSSParser(java.lang.String className)
          Get the named RSS parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRSSParser

public static RSSParser getRSSParser(java.lang.String className)
                              throws RSSParserException
Get the named RSS parser. This method loads the specified class, verifies that it conforms to the RSSParser interface, instantiates it (via its default constructor), and returns the resulting RSSParser object.

Parameters:
className - the class name
Returns:
an RSSParser object
Throws:
RSSParserException - Error instantiating class. The exception will contain (i.e., nest) the real underlying exception.


Copyright © 2004-2006 Brian M. Clapper. All Rights Reserved.