Interface DataSource

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@ExperimentalApi @FunctionalInterface public interface DataSource
A data source for specs defined by a Feed.
Since:
5.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an input stream containing the data for a Feed.
    default String
    Returns the name of this data source, if applicable (for example, file name).
  • Method Details

    • getInputStream

      @ExperimentalApi InputStream getInputStream() throws IOException
      Returns an input stream containing the data for a Feed.
      Returns:
      data input steam
      Throws:
      IOException - if an IO error occurs
      Since:
      5.0.0
    • getName

      @ExperimentalApi default String getName()
      Returns the name of this data source, if applicable (for example, file name).
      Returns:
      resource name, or null if not applicable
      Since:
      5.0.0