public interface FileCopier
BaseFileCopier can
be used to generate a destination file path.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
copyFile(ExecutionContext context,
java.io.File file,
INodeEntry node)
Copy the contents of an input stream to the node
|
java.lang.String |
copyFileStream(ExecutionContext context,
java.io.InputStream input,
INodeEntry node)
Copy the contents of an input stream to the node
|
java.lang.String |
copyScriptContent(ExecutionContext context,
java.lang.String script,
INodeEntry node)
Copy the contents of an input stream to the node
|
java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node) throws FileCopierException
context - contextinput - the input streamnode - nodeFileCopierException - if an error occursjava.lang.String copyFile(ExecutionContext context, java.io.File file, INodeEntry node) throws FileCopierException
context - contextfile - local file tocopynode - nodeFileCopierException - if an error occursjava.lang.String copyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node) throws FileCopierException
context - contextscript - file content stringnode - nodeFileCopierException - if an error occurs