public class LocalFileCopier extends BaseFileCopier implements FileCopier
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE_PROVIDER_TYPE |
DEFAULT_UNIX_FILE_EXT, DEFAULT_WINDOWS_FILE_EXT, FILE_COPY_DESTINATION_DIR, FRAMEWORK_FILE_COPY_DESTINATION_DIR, PROJECT_FILE_COPY_DESTINATION_DIR
Constructor and Description |
---|
LocalFileCopier(Framework framework) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
copyFile(ExecutionContext context,
java.io.File file,
INodeEntry node,
java.lang.String destination)
Copy the contents of an input stream to the node
|
java.lang.String |
copyFileStream(ExecutionContext context,
java.io.InputStream input,
INodeEntry node,
java.lang.String destination)
Copy the contents of an input stream to the node
|
java.lang.String |
copyScriptContent(ExecutionContext context,
java.lang.String script,
INodeEntry node,
java.lang.String destination)
Copy the contents of an input stream to the node
|
appendRemoteFileExtension, defaultRemoteFileExtensionForNode, generateRemoteFilepathForNode, generateRemoteFilepathForNode, generateRemoteFilepathForNode, generateRemoteFilepathForNode, getRemoteDirForNode, getRemoteDirForNode, writeLocalFile, writeTempFile
public static final java.lang.String SERVICE_PROVIDER_TYPE
public LocalFileCopier(Framework framework)
public java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destination) throws FileCopierException
FileCopier
copyFileStream
in interface FileCopier
context
- contextinput
- the input streamnode
- nodedestination
- the full path destination for the fileFileCopierException
- if an error occurspublic java.lang.String copyFile(ExecutionContext context, java.io.File file, INodeEntry node, java.lang.String destination) throws FileCopierException
FileCopier
copyFile
in interface FileCopier
context
- contextfile
- local file tocopynode
- nodedestination
- the full path destination for the fileFileCopierException
- if an error occurspublic java.lang.String copyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node, java.lang.String destination) throws FileCopierException
FileCopier
copyScriptContent
in interface FileCopier
context
- contextscript
- file content stringnode
- nodedestination
- the full path destination for the fileFileCopierException
- if an error occurs