public class FTPDataSink extends Object implements org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink
This DataSink stores DataElements in an ftp site.
| Modifier and Type | Field and Description |
|---|---|
protected static String |
PARAMETER_DirectoryName |
protected static String |
PARAMETER_Password |
protected static String |
PARAMETER_Port |
protected static String |
PARAMETER_Username |
| Constructor and Description |
|---|
FTPDataSink(String output,
org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] outputParameters) |
protected static final String PARAMETER_DirectoryName
protected static final String PARAMETER_Username
protected static final String PARAMETER_Password
protected static final String PARAMETER_Port
public FTPDataSink(String output, org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] outputParameters) throws Exception
output - The output value of the DataSink.outputParameters - The output parameters of the DataSink.Exception - If a connection with the ftp site could not be established.public static void main(String[] args) throws Exception
args - nothingException - If a connection could not be established with the ftp site.public void append(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement element)
append in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSinkelement - DataElement to be appended to this DataSinkDataSink.append(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement)public void close()
close in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandlerDataHandler.close()public String getOutput()
getOutput in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSinkDataSink.getOutput()public boolean isClosed()
isClosed in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandlerDataHandler.isClosed()Copyright © 2015. All Rights Reserved.