public interface FileCopier
BaseFileCopier
can
be used to generate a destination file path.MultiFileCopier
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
|
java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node, java.lang.String destination) throws FileCopierException
context
- contextinput
- the input streamnode
- nodedestination
- the full path destination for the fileFileCopierException
- if an error occursjava.lang.String copyFile(ExecutionContext context, java.io.File file, INodeEntry node, java.lang.String destination) throws FileCopierException
context
- contextfile
- local file tocopynode
- nodedestination
- the full path destination for the fileFileCopierException
- if an error occursjava.lang.String copyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node, java.lang.String destination) throws FileCopierException
context
- contextscript
- file content stringnode
- nodedestination
- the full path destination for the fileFileCopierException
- if an error occurs