- java.lang.Object
-
- com.gluonhq.connect.source.BasicInputDataSource
-
- All Implemented Interfaces:
InputDataSource
public class BasicInputDataSource extends Object implements InputDataSource
An implementation ofInputDataSource
that takes any genericInputStream
as its source.
-
-
Constructor Summary
Constructors Constructor Description BasicInputDataSource(InputStream inputStream)
Construct a BasicInputDataSource that uses the giveninputStream
as its source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInputStream()
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 giveninputStream
as 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:InputDataSource
Returns an InputStream that will be used as the source to read data from.- Specified by:
getInputStream
in interfaceInputDataSource
- Returns:
- an InputStream that is used as the source to read data from
- Throws:
IOException
- when an exception occurred while getting the InputStream
-
-