Class SuffixFileMapper
java.lang.Object
org.codehaus.plexus.components.io.filemappers.AbstractFileMapper
org.codehaus.plexus.components.io.filemappers.SuffixFileMapper
- All Implemented Interfaces:
FileMapper
A file mapper, which maps by adding a suffix to the filename.
If the filename contains dot, the suffix will be added before.
Example:
directory/archive.tar.gz => directory/archivesuffix.tar.gz-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ROLE_HINT
-
-
Constructor Details
-
SuffixFileMapper
public SuffixFileMapper()
-
-
Method Details
-
getSuffix
Returns the suffix to add. -
setSuffix
Sets the suffix to add. -
getMappedFileName
Description copied from class:AbstractFileMapperChecks the input and returns it without modifications.- Specified by:
getMappedFileNamein interfaceFileMapper- Overrides:
getMappedFileNamein classAbstractFileMapper- Parameters:
pName- The source name.- Returns:
- The target name.
-