/** * Creates a SyndFeedImpl and populates all its properties out of the * given RSS Channel or Atom Feed properties, while optionally preserving * the WireFeed for access via the orignalWireFeed() method. * * @param feed * @param preserveWireFeed */ public SyndFeedImpl(WireFeed feed, boolean preserveWireFeed) { this(SyndFeed.class,IGNORE_PROPERTIES); if (preserveWireFeed) { this.wireFeed = feed; this.preserveWireFeed = preserveWireFeed; } if (feed!=null) { _feedType = feed.getFeedType(); Converter converter = CONVERTERS.getConverter(_feedType); if (converter==null) { throw new IllegalArgumentException("Invalid feed type ["+_feedType+"]"); } converter.copyInto(feed,this); } }
/** * Creates a SyndFeedImpl and populates all its properties out of the * given RSS Channel or Atom Feed properties, while optionally preserving * the WireFeed for access via the orignalWireFeed() method. * * @param feed * @param preserveWireFeed */ public SyndFeedImpl(WireFeed feed, boolean preserveWireFeed) { this(SyndFeed.class,IGNORE_PROPERTIES); if (preserveWireFeed) { this.wireFeed = feed; this.preserveWireFeed = preserveWireFeed; } if (feed!=null) { _feedType = feed.getFeedType(); Converter converter = CONVERTERS.getConverter(_feedType); if (converter==null) { throw new IllegalArgumentException("Invalid feed type ["+_feedType+"]"); } converter.copyInto(feed,this); } }
/** * Creates a SyndFeedImpl and populates all its properties out of the * given RSS Channel or Atom Feed properties, while optionally preserving * the WireFeed for access via the orignalWireFeed() method. * * @param feed * @param preserveWireFeed */ public SyndFeedImpl(WireFeed feed, boolean preserveWireFeed) { this(SyndFeed.class,IGNORE_PROPERTIES); if (preserveWireFeed) { this.wireFeed = feed; this.preserveWireFeed = preserveWireFeed; } if (feed!=null) { _feedType = feed.getFeedType(); Converter converter = CONVERTERS.getConverter(_feedType); if (converter==null) { throw new IllegalArgumentException("Invalid feed type ["+_feedType+"]"); } converter.copyInto(feed,this); } }
/** * Creates a SyndFeedImpl and populates all its properties out of the * given RSS Channel or Atom Feed properties, while optionally preserving * the WireFeed for access via the orignalWireFeed() method. * * @param feed * @param preserveWireFeed */ public SyndFeedImpl(WireFeed feed, boolean preserveWireFeed) { this(SyndFeed.class,IGNORE_PROPERTIES); if (preserveWireFeed) { this.wireFeed = feed; this.preserveWireFeed = preserveWireFeed; } if (feed!=null) { _feedType = feed.getFeedType(); Converter converter = CONVERTERS.getConverter(_feedType); if (converter==null) { throw new IllegalArgumentException("Invalid feed type ["+_feedType+"]"); } converter.copyInto(feed,this); } }