Class LastDirectoryAsPrefix
Object
AnchorBean<PathPrefixer>
PathPrefixer
PathPrefixerAvoidResolve
LastDirectoryAsPrefix
public class LastDirectoryAsPrefix
extends PathPrefixerAvoidResolve
Looks for the last directory-name, and removes it in favour of using it as a prefix on a filename
e.g.
/a/b/c/d/e/somename.tifinstead becomes
/a/b/c/d/e_somename.tif* @author Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPathPrefixerAvoidResolveDirectoryWithPrefixoutFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context) voidsetDelimiter(String delimiter) voidsetPrefixer(PathPrefixerAvoidResolve prefixer) Methods inherited from class org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve
getPrefix, outFilePrefix, outFilePrefixAvoidResolve, rootDirectoryPrefix, rootDirectoryPrefixAvoidResolve, setPrefixMethods inherited from class org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixer
resolvePath, resolvePathMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
LastDirectoryAsPrefix
public LastDirectoryAsPrefix()
-
-
Method Details
-
outFilePrefixFromPath
public DirectoryWithPrefix outFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context) throws PathPrefixerException - Specified by:
outFilePrefixFromPathin classPathPrefixerAvoidResolve- Throws:
PathPrefixerException
-
getPrefixer
public PathPrefixerAvoidResolve getPrefixer() -
setPrefixer
public void setPrefixer(PathPrefixerAvoidResolve prefixer) -
getDelimiter
-
setDelimiter
-