Class CopyFilesMethod
- Direct Known Subclasses:
Bytewise
,CompressAnyTIFF
A method used for copying files (e.g. bytewise or activating compression etc.).
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Makes a copy of the file atsource
atdestination
.protected abstract void
makeCopyWithDirectory
(Path source, Path destination) LikemakeCopy(Path,Path)
but after any necessary directories are created sodestination
can be written.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
CopyFilesMethod
public CopyFilesMethod()
-
-
Method Details
-
makeCopy
Makes a copy of the file atsource
atdestination
.- Parameters:
source
- the path of the file to copy fromdestination
- the path to create a copy at- Throws:
CreateException
- if anything goes wrong
-
makeCopyWithDirectory
LikemakeCopy(Path,Path)
but after any necessary directories are created sodestination
can be written.- Parameters:
source
-destination
-- Throws:
CreateException
-