Class LastDirectoryAsPrefix
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixer>
org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixer
org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve
org.anchoranalysis.plugin.io.bean.file.path.prefixer.LastDirectoryAsPrefix
public class LastDirectoryAsPrefix
extends org.anchoranalysis.io.output.bean.path.prefixer.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 Constructor Description LastDirectoryAsPrefix() -
Method Summary
Modifier and Type Method Description StringgetDelimiter()org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolvegetPrefixer()org.anchoranalysis.io.output.path.prefixer.DirectoryWithPrefixoutFilePrefixFromPath(org.anchoranalysis.io.output.path.prefixer.NamedPath path, Path root, org.anchoranalysis.io.output.path.prefixer.PathPrefixerContext context)voidsetDelimiter(String delimiter)voidsetPrefixer(org.anchoranalysis.io.output.bean.path.prefixer.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, resolvePath
-
Constructor Details
-
LastDirectoryAsPrefix
public LastDirectoryAsPrefix()
-
-
Method Details
-
outFilePrefixFromPath
public org.anchoranalysis.io.output.path.prefixer.DirectoryWithPrefix outFilePrefixFromPath(org.anchoranalysis.io.output.path.prefixer.NamedPath path, Path root, org.anchoranalysis.io.output.path.prefixer.PathPrefixerContext context) throws org.anchoranalysis.io.output.path.prefixer.PathPrefixerException- Specified by:
outFilePrefixFromPathin classorg.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve- Throws:
org.anchoranalysis.io.output.path.prefixer.PathPrefixerException
-
getPrefixer
public org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve getPrefixer() -
setPrefixer
public void setPrefixer(org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve prefixer) -
getDelimiter
-
setDelimiter
-