Class CopyFilesMethod

Object
AnchorBean<CopyFilesMethod>
CopyFilesMethod
Direct Known Subclasses:
Bytewise, CompressAnyTIFF

public abstract class CopyFilesMethod extends AnchorBean<CopyFilesMethod>
A method used for copying files (e.g. bytewise or activating compression etc.).
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    makeCopy(Path source, Path destination)
    Makes a copy of the file at source at destination.
    protected abstract void
    makeCopyWithDirectory(Path source, Path destination)
    Like makeCopy(Path,Path) but after any necessary directories are created so destination can be written.

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CopyFilesMethod

      public CopyFilesMethod()
  • Method Details

    • makeCopy

      public void makeCopy(Path source, Path destination) throws CreateException
      Makes a copy of the file at source at destination.
      Parameters:
      source - the path of the file to copy from
      destination - the path to create a copy at
      Throws:
      CreateException - if anything goes wrong
    • makeCopyWithDirectory

      protected abstract void makeCopyWithDirectory(Path source, Path destination) throws CreateException
      Like makeCopy(Path,Path) but after any necessary directories are created so destination can be written.
      Parameters:
      source -
      destination -
      Throws:
      CreateException