Class FileCopy

All Implemented Interfaces:
WorkflowComponent, WorkflowComponentWithID, IWorkflowComponent

public class FileCopy extends AbstractWorkflowComponent
Copies one file in the file system to another location. Performs low-level read/write operations using NIO.
Author:
Achim Demelt
  • Constructor Details

    • FileCopy

      public FileCopy()
  • Method Details

    • setSourceFile

      public void setSourceFile(String sourceFile)
    • setTargetFile

      public void setTargetFile(String targetFile)
    • checkConfiguration

      public void checkConfiguration(Issues issues)
      Description copied from interface: WorkflowComponent
      Called by the container after configuration so the component can validate the configuration before invocation.
      Parameters:
      issues - implementors should report configuration issues to this.
    • invokeInternal

      protected void invokeInternal(WorkflowContext ctx, ProgressMonitor monitor, Issues issues)
      Description copied from class: AbstractWorkflowComponent
      Internal method for component execution.
      Specified by:
      invokeInternal in class AbstractWorkflowComponent
      Parameters:
      ctx - the workflow context
      monitor - the progress monitor
      issues - container of execution issues