|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileCopier
FileCopier copies a file or its contents to a local or remote node. The destination on the node is not
predetermined, but some utility methods of BaseFileCopier
can
be used to generate a destination file path.
Method Summary | |
---|---|
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 |
Method Detail |
---|
java.lang.String copyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node) throws FileCopierException
context
- contextinput
- the input streamnode
-
FileCopierException
- if an error occursjava.lang.String copyFile(ExecutionContext context, java.io.File file, INodeEntry node) throws FileCopierException
context
- contextfile
- local file tocopynode
-
FileCopierException
- if an error occursjava.lang.String copyScriptContent(ExecutionContext context, java.lang.String script, INodeEntry node) throws FileCopierException
context
- contextscript
- file content stringnode
-
FileCopierException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |