- java.lang.Object
-
- com.gluonhq.connect.source.BasicInputDataSource
-
- All Implemented Interfaces:
InputDataSource
public class BasicInputDataSource extends Object implements InputDataSource
An implementation ofInputDataSourcethat takes any genericInputStreamas its source.
-
-
Constructor Summary
Constructors Constructor Description BasicInputDataSource(InputStream inputStream)Construct a BasicInputDataSource that uses the giveninputStreamas its source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInputStream()Returns an InputStream that will be used as the source to read data from.
-
-
-
Constructor Detail
-
BasicInputDataSource
public BasicInputDataSource(InputStream inputStream)
Construct a BasicInputDataSource that uses the giveninputStreamas its source.- Parameters:
inputStream- the input stream to use as the source for this input data source
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
Description copied from interface:InputDataSourceReturns an InputStream that will be used as the source to read data from.- Specified by:
getInputStreamin interfaceInputDataSource- Returns:
- an InputStream that is used as the source to read data from
- Throws:
IOException- when an exception occurred while getting the InputStream
-
-