public class RS2DataSource extends Object implements org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource, org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource
DataSource fetches data from a result set.| Constructor and Description |
|---|
RS2DataSource(String input,
org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] inputParameters)
This constructor for
RS2DataSource |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
static String |
inputStreamToString(InputStream inputStream) |
boolean |
isClosed() |
static void |
main(String[] args) |
org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement |
next() |
org.gcube.datatransformation.datatransformationlibrary.model.ContentType |
nextContentType() |
public RS2DataSource(String input, org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] inputParameters) throws Exception
RS2DataSourceinput - The input value of the DataSource.inputParameters - The output parameters of the DataSink.Exception - If the result set could not be created.public void close()
close in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandlerDataHandler.close()public boolean isClosed()
isClosed in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandlerDataHandler.isClosed()public boolean hasNext()
hasNext in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSourcehasNext in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSourcepublic org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement next()
throws Exception
next in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSourceExceptionpublic org.gcube.datatransformation.datatransformationlibrary.model.ContentType nextContentType()
nextContentType in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSourcepublic static String inputStreamToString(InputStream inputStream) throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.