Interface FileCopier

    • Method Detail

      • copyFileStream

        java.lang.String copyFileStream​(ExecutionContext context,
                                        java.io.InputStream input,
                                        INodeEntry node,
                                        java.lang.String destination)
                                 throws FileCopierException
        Copy the contents of an input stream to the node
        Parameters:
        context - context
        input - the input stream
        node - node
        destination - the full path destination for the file
        Returns:
        File path of the file after copying to the node
        Throws:
        FileCopierException - if an error occurs
      • copyFile

        java.lang.String copyFile​(ExecutionContext context,
                                  java.io.File file,
                                  INodeEntry node,
                                  java.lang.String destination)
                           throws FileCopierException
        Copy the contents of an input stream to the node
        Parameters:
        context - context
        file - local file tocopy
        node - node
        destination - the full path destination for the file
        Returns:
        File path of the file after copying to the node
        Throws:
        FileCopierException - if an error occurs
      • copyScriptContent

        java.lang.String copyScriptContent​(ExecutionContext context,
                                           java.lang.String script,
                                           INodeEntry node,
                                           java.lang.String destination)
                                    throws FileCopierException
        Copy the contents of an input stream to the node
        Parameters:
        context - context
        script - file content string
        node - node
        destination - the full path destination for the file
        Returns:
        File path of the file after copying to the node
        Throws:
        FileCopierException - if an error occurs