Package com.streambase.sb.feedsim
Class FeedSimCSVInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.streambase.sb.feedsim.FeedSimCSVInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
FeedSimTupleInputStream
public abstract class FeedSimCSVInputStream extends InputStream
FeedSim can be configured to use classes that extend this abstract class. This allows users to read proprietary formated files and deliver their contents so that FeedSim can play their data like any other product supported format. Data returned by the required read() method must be in essentially CSV format.- Since:
- 6.5.8
-
-
Constructor Summary
Constructors Constructor Description FeedSimCSVInputStream(String path)
Constructor which takes a path of the file to open.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPath()
Returns the path String this object was constructed with.-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
FeedSimCSVInputStream
public FeedSimCSVInputStream(String path) throws IOException
Constructor which takes a path of the file to open. Running FeedSim within StreamBase Studio this path will be a resource known to the project. Running FeedSim from the command line, the path must be resolved with respect to the working directory of the FeedSim command.- Parameters:
path
- - path of the file to open- Throws:
IOException
- Input error
-
-
Method Detail
-
getPath
public String getPath()
Returns the path String this object was constructed with.- Returns:
- The path to the file
-
-