Package com.rometools.rome.io.impl
Class FeedGenerators
- java.lang.Object
-
- com.rometools.rome.io.impl.PluginManager<WireFeedGenerator>
-
- com.rometools.rome.io.impl.FeedGenerators
-
public class FeedGenerators extends PluginManager<WireFeedGenerator>
Generates an XML document (JDOM Document) out of a Feed.It can generate all flavors of RSS (0.90, 0.91, 0.92, 0.93, 0.94, 1.0 and 2.0) and Atom 0.3 feed.
WireFeedGenerator instances are thread safe.
Generators for a specific type must extend this class and register in the generator list. (Right now registration is hardcoded in the WireFeedGenerator constructor).
-
-
Field Summary
Fields Modifier and Type Field Description static StringFEED_GENERATORS_KEYWireFeedGenerator.classes= [className] ...
-
Constructor Summary
Constructors Constructor Description FeedGenerators()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WireFeedGeneratorgetGenerator(String feedType)protected StringgetKey(WireFeedGenerator obj)List<String>getSupportedFeedTypes()-
Methods inherited from class com.rometools.rome.io.impl.PluginManager
getKeys, getPlugin, getPluginMap, getPlugins
-
-
-
-
Field Detail
-
FEED_GENERATORS_KEY
public static final String FEED_GENERATORS_KEY
WireFeedGenerator.classes= [className] ...- See Also:
- Constant Field Values
-
-
Method Detail
-
getGenerator
public WireFeedGenerator getGenerator(String feedType)
-
getKey
protected String getKey(WireFeedGenerator obj)
- Specified by:
getKeyin classPluginManager<WireFeedGenerator>
-
-