Package org.instancio.feed
Interface FeedProvider.FeedBuilderFactory
-
Method Summary
Modifier and TypeMethodDescriptionCreates a feed instance of the specified feed class.default FeedApiCreates a feed instance for the specified file path.default FeedApiofInputStream(InputStream inputStream) Creates a feed instance for the specified input stream.default FeedApiofResource(String name) Creates a feed instance for the specified classpath resource.default FeedApiCreates a feed instance with the given data.
-
Method Details
-
of
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
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
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
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
Creates a feed instance with the given data.- Parameters:
data- the data represented as a string- Returns:
- API builder reference
- Since:
- 5.0.0
-