com.sun.syndication.io.WireFeedInput.getFeedParsers()方法的使用及代码示例

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

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

WireFeedInput.getFeedParsers介绍

暂无

代码示例

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

  1. /**
  2. * Returns the list of supported input feed types.
  3. * <p>
  4. * @see WireFeed for details on the format of these strings.
  5. * <p>
  6. * @return a list of String elements with the supported input feed types.
  7. *
  8. */
  9. public static List getSupportedFeedTypes() {
  10. return getFeedParsers().getSupportedFeedTypes();
  11. }

代码示例来源:origin: com.sun.syndication/com.springsource.com.sun.syndication

  1. /**
  2. * Returns the list of supported input feed types.
  3. * <p>
  4. * @see WireFeed for details on the format of these strings.
  5. * <p>
  6. * @return a list of String elements with the supported input feed types.
  7. *
  8. */
  9. public static List getSupportedFeedTypes() {
  10. return getFeedParsers().getSupportedFeedTypes();
  11. }

代码示例来源:origin: org.apache.marmotta/sesame-tools-rio-rss

  1. /**
  2. * Returns the list of supported input feed types.
  3. * <p>
  4. * @see WireFeed for details on the format of these strings.
  5. * <p>
  6. * @return a list of String elements with the supported input feed types.
  7. *
  8. */
  9. public static List getSupportedFeedTypes() {
  10. return getFeedParsers().getSupportedFeedTypes();
  11. }

代码示例来源:origin: apache/marmotta

  1. /**
  2. * Returns the list of supported input feed types.
  3. * <p>
  4. * @see WireFeed for details on the format of these strings.
  5. * <p>
  6. * @return a list of String elements with the supported input feed types.
  7. *
  8. */
  9. public static List getSupportedFeedTypes() {
  10. return getFeedParsers().getSupportedFeedTypes();
  11. }

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

  1. /**
  2. * Builds an WireFeed (RSS or Atom) from an JDOM document.
  3. * <p>
  4. * NOTE: All other build methods delegate to this method.
  5. * <p>
  6. * @param document JDOM document to read to create the WireFeed.
  7. * @return the WireFeed read from the JDOM document.
  8. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers.
  9. * @throws FeedException if the feed could not be parsed
  10. *
  11. */
  12. public WireFeed build(Document document) throws IllegalArgumentException,FeedException {
  13. WireFeedParser parser = getFeedParsers().getParserFor(document);
  14. if (parser==null) {
  15. throw new IllegalArgumentException("Invalid document");
  16. }
  17. return parser.parse(document, _validate);
  18. }

代码示例来源:origin: com.sun.syndication/com.springsource.com.sun.syndication

  1. /**
  2. * Builds an WireFeed (RSS or Atom) from an JDOM document.
  3. * <p>
  4. * NOTE: All other build methods delegate to this method.
  5. * <p>
  6. * @param document JDOM document to read to create the WireFeed.
  7. * @return the WireFeed read from the JDOM document.
  8. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers.
  9. * @throws FeedException if the feed could not be parsed
  10. *
  11. */
  12. public WireFeed build(Document document) throws IllegalArgumentException,FeedException {
  13. WireFeedParser parser = getFeedParsers().getParserFor(document);
  14. if (parser==null) {
  15. throw new IllegalArgumentException("Invalid document");
  16. }
  17. return parser.parse(document, _validate);
  18. }

代码示例来源:origin: org.apache.marmotta/sesame-tools-rio-rss

  1. /**
  2. * Builds an WireFeed (RSS or Atom) from an JDOM document.
  3. * <p>
  4. * NOTE: All other build methods delegate to this method.
  5. * <p>
  6. * @param document JDOM document to read to create the WireFeed.
  7. * @return the WireFeed read from the JDOM document.
  8. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers.
  9. * @throws FeedException if the feed could not be parsed
  10. *
  11. */
  12. public WireFeed build(Document document) throws IllegalArgumentException,FeedException {
  13. WireFeedParser parser = getFeedParsers().getParserFor(document);
  14. if (parser==null) {
  15. throw new IllegalArgumentException("Invalid document");
  16. }
  17. return parser.parse(document, _validate);
  18. }

代码示例来源:origin: apache/marmotta

  1. /**
  2. * Builds an WireFeed (RSS or Atom) from an JDOM document.
  3. * <p>
  4. * NOTE: All other build methods delegate to this method.
  5. * <p>
  6. * @param document JDOM document to read to create the WireFeed.
  7. * @return the WireFeed read from the JDOM document.
  8. * @throws IllegalArgumentException thrown if feed type could not be understood by any of the underlying parsers.
  9. * @throws FeedException if the feed could not be parsed
  10. *
  11. */
  12. public WireFeed build(Document document) throws IllegalArgumentException,FeedException {
  13. WireFeedParser parser = getFeedParsers().getParserFor(document);
  14. if (parser==null) {
  15. throw new IllegalArgumentException("Invalid document");
  16. }
  17. return parser.parse(document, _validate);
  18. }

相关文章