Class CopyFilesMethod

Object
org.anchoranalysis.bean.AnchorBean<CopyFilesMethod>
org.anchoranalysis.plugin.io.bean.file.copy.method.CopyFilesMethod
Direct Known Subclasses:
Bytewise, CompressAnyTIFF

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

    Constructors 
    Constructor Description
    CopyFilesMethod()  
  • 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

  • Method Details

    • makeCopy

      public void makeCopy​(Path source, Path destination) throws org.anchoranalysis.core.exception.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:
      org.anchoranalysis.core.exception.CreateException - if anything goes wrong
    • makeCopyWithDirectory

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