- java.lang.Object
-
- com.gluonhq.connect.source.BasicOutputDataSource
-
- All Implemented Interfaces:
OutputDataSource
public class BasicOutputDataSource extends Object implements OutputDataSource
An implementation ofOutputDataSourcethat takes any genericOutputStreamas its source.
-
-
Constructor Summary
Constructors Constructor Description BasicOutputDataSource(OutputStream outputStream)Construct a BasicOutputDataSource that uses the givenoutputStreamas its source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStreamgetOutputStream()Returns the OutputStream that will be used as the source to write data to.
-
-
-
Constructor Detail
-
BasicOutputDataSource
public BasicOutputDataSource(OutputStream outputStream)
Construct a BasicOutputDataSource that uses the givenoutputStreamas its source.- Parameters:
outputStream- the output stream to use as the source for this output data source
-
-
Method Detail
-
getOutputStream
public OutputStream getOutputStream()
Description copied from interface:OutputDataSourceReturns the OutputStream that will be used as the source to write data to.- Specified by:
getOutputStreamin interfaceOutputDataSource- Returns:
- an OutputStream that is used as the source to write data to
-
-