- java.lang.Object
-
- com.gluonhq.connect.source.BasicOutputDataSource
-
- All Implemented Interfaces:
OutputDataSource
public class BasicOutputDataSource extends Object implements OutputDataSource
An implementation ofOutputDataSource
that takes any genericOutputStream
as its source.
-
-
Constructor Summary
Constructors Constructor Description BasicOutputDataSource(OutputStream outputStream)
Construct a BasicOutputDataSource that uses the givenoutputStream
as its source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStream
getOutputStream()
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 givenoutputStream
as 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:OutputDataSource
Returns the OutputStream that will be used as the source to write data to.- Specified by:
getOutputStream
in interfaceOutputDataSource
- Returns:
- an OutputStream that is used as the source to write data to
-
-