Interface FeedProvider.FeedBuilderFactory

Enclosing interface:
FeedProvider

@ExperimentalApi public static interface FeedProvider.FeedBuilderFactory
Factory for building instances of a Feed.
Since:
5.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default <F extends Feed>
    FeedApi
    of(Class<F> feedClass)
    Creates a feed instance of the specified feed class.
    default FeedApi
    ofFile(Path path)
    Creates a feed instance for the specified file path.
    default FeedApi
    Creates a feed instance for the specified input stream.
    default FeedApi
    Creates a feed instance for the specified classpath resource.
    default FeedApi
    Creates a feed instance with the given data.
  • Method Details

    • of

      @ExperimentalApi default <F extends Feed> FeedApi of(Class<F> feedClass)
      Creates a feed instance of the specified feed class.
      Type Parameters:
      F - the type of the feed
      Parameters:
      feedClass - the feed class
      Returns:
      API builder reference
      Since:
      5.0.0
    • ofInputStream

      @ExperimentalApi default FeedApi ofInputStream(InputStream inputStream)
      Creates a feed instance for the specified input stream.
      Parameters:
      inputStream - the input stream containing the data
      Returns:
      API builder reference
      Since:
      5.0.0
    • ofFile

      @ExperimentalApi default FeedApi ofFile(Path path)
      Creates a feed instance for the specified file path.
      Parameters:
      path - the path of the file containing the data
      Returns:
      API builder reference
      Since:
      5.0.0
    • ofResource

      @ExperimentalApi default FeedApi ofResource(String name)
      Creates a feed instance for the specified classpath resource.
      Parameters:
      name - the name of the classpath resource containing the data
      Returns:
      API builder reference
      Since:
      5.0.0
    • ofString

      @ExperimentalApi default FeedApi ofString(String data)
      Creates a feed instance with the given data.
      Parameters:
      data - the data represented as a string
      Returns:
      API builder reference
      Since:
      5.0.0