Package org.instancio.feed
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.
A data source for specs defined by a
Feed.- Since:
- 5.0.0
- See Also:
-
Method Details
-
getInputStream
Returns an input stream containing the data for aFeed.- Returns:
- data input steam
- Throws:
IOException- if an IO error occurs- Since:
- 5.0.0
-
getName
Returns the name of this data source, if applicable (for example, file name).- Returns:
- resource name, or
nullif not applicable - Since:
- 5.0.0
-