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 voidmakeCopy(Path source, Path destination)Makes a copy of the file atsourceatdestination.protected abstract voidmakeCopyWithDirectory(Path source, Path destination)LikemakeCopy(Path,Path)but after any necessary directories are created sodestinationcan be written.
-
Constructor Details
-
CopyFilesMethod
public CopyFilesMethod()
-
-
Method Details
-
makeCopy
public void makeCopy(Path source, Path destination) throws org.anchoranalysis.core.exception.CreateExceptionMakes a copy of the file atsourceatdestination.- Parameters:
source- the path of the file to copy fromdestination- 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.CreateExceptionLikemakeCopy(Path,Path)but after any necessary directories are created sodestinationcan be written.- Parameters:
source-destination-- Throws:
org.anchoranalysis.core.exception.CreateException
-