Class RelativeToDirectory
Object
AnchorBean<FileNamer>
FileNamer
FileNamerIndependent
RelativeToDirectory
public class RelativeToDirectory
extends FileNamerIndependent
Constructs a name by finding the relative-path between the file and the input-directory.
If no input-directory exists, a name cannot be constructed.
Any directory seperator in the he path is always expressed with forward-slashes, even if backslashes are used by the operating system.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringderiveName(File file, Optional<Path> inputDirectory, int index) Methods inherited from class org.anchoranalysis.io.input.bean.namer.FileNamerIndependent
deriveNameMethods inherited from class org.anchoranalysis.io.input.bean.namer.FileNamer
deriveName, deriveNameUniqueMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
RelativeToDirectory
public RelativeToDirectory()
-
-
Method Details
-
deriveName
-