com.rometools.rome.feed.WireFeed.setFeedType()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中com.rometools.rome.feed.WireFeed.setFeedType()方法的一些代码示例,展示了WireFeed.setFeedType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WireFeed.setFeedType()方法的具体详情如下:
包路径:com.rometools.rome.feed.WireFeed
类名称:WireFeed
方法名:setFeedType

WireFeed.setFeedType介绍

[英]Sets the feedType of a the feed. Do not use, for bean cloning purposes only.
[中]设置馈送的馈送类型。请勿使用,仅用于bean克隆目的。

代码示例

代码示例来源:origin: rometools/rome

/**
 * After we parse the feed we put "rss_2.0" in it (so converters and generators work) this
 * parser is a phantom.
 *
 */
@Override
protected WireFeed parseChannel(final Element rssRoot, final Locale locale) {
  final WireFeed wFeed = super.parseChannel(rssRoot, locale);
  wFeed.setFeedType("rss_2.0");
  return wFeed;
}

代码示例来源:origin: rometools/rome

/**
   * After we parse the feed we put "rss_2.0" in it (so converters and generators work) this
   * parser is a phantom.
   *
   */
  @Override
  protected WireFeed parseChannel(final Element rssRoot, final Locale locale) {
    final WireFeed wFeed = super.parseChannel(rssRoot, locale);
    wFeed.setFeedType("rss_2.0");

    return wFeed;
  }
}

代码示例来源:origin: com.rometools/rome

/**
 * After we parse the feed we put "rss_2.0" in it (so converters and generators work) this
 * parser is a phantom.
 *
 */
@Override
protected WireFeed parseChannel(final Element rssRoot, final Locale locale) {
  final WireFeed wFeed = super.parseChannel(rssRoot, locale);
  wFeed.setFeedType("rss_2.0");
  return wFeed;
}

代码示例来源:origin: com.rometools/rome-modules

/**
   * After we parse the feed we put "rss_2.0" in it (so converters and generators work) this
   * parser is a phantom.
   *
   */
  @Override
  protected WireFeed parseChannel(final Element rssRoot, final Locale locale) {
    final WireFeed wFeed = super.parseChannel(rssRoot, locale);
    wFeed.setFeedType("rss_2.0");

    return wFeed;
  }
}

相关文章