1 17 package com.sun.syndication.feed.synd.impl; 18 19 import com.sun.syndication.io.impl.PluginManager; 20 import com.sun.syndication.feed.synd.Converter; 21 22 import java.util.List ; 23 24 31 public class Converters extends PluginManager { 32 33 37 public static final String CONVERTERS_KEY = "Converter.classes"; 38 39 public Converters() { 40 super(CONVERTERS_KEY); 41 } 42 43 public Converter getConverter(String feedType) { 44 return (Converter) getPlugin(feedType); 45 } 46 47 protected String getKey(Object obj) { 48 return ((Converter)obj).getType(); 49 } 50 51 public List getSupportedFeedTypes() { 52 return getKeys(); 53 } 54 55 } 56 | Popular Tags |