Class SyndFeedWrapper


  • public final class SyndFeedWrapper
    extends java.lang.Object
    This is a wrapper class for a Synd Feed (atom/rss).
    Author:
    sts
    • Method Detail

      • build

        public SyndFeedWrapper build()
                              throws com.sun.syndication.io.FeedException
        Builds the content and the size of this wrapper.
        Returns:
        the synd feed wrapper
        Throws:
        com.sun.syndication.io.FeedException - the feed exception
      • getContent

        public byte[] getContent()
        Gets the content.
        Returns:
        the content
      • getSize

        public long getSize()
        Gets the size.
        Returns:
        the size
      • create

        public static SyndFeedWrapper create​(com.sun.syndication.feed.synd.SyndFeed feed)
        Creates a new instance of this wrapper.
        Parameters:
        feed - the feed
        Returns:
        the synd feed wrapper