Class SuffixFileMapper

  • All Implemented Interfaces:
    FileMapper

    public class SuffixFileMapper
    extends AbstractFileMapper
    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 
      Modifier and Type Field Description
      static java.lang.String ROLE_HINT
      The suffix mappers role-hint: "suffix".
      private java.lang.String suffix  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMappedFileName​(java.lang.String pName)
      Checks the input and returns it without modifications.
      java.lang.String getSuffix()
      Returns the suffix to add.
      void setSuffix​(java.lang.String suffix)
      Sets the suffix to add.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ROLE_HINT

        public static final java.lang.String ROLE_HINT
        The suffix mappers role-hint: "suffix".
        See Also:
        Constant Field Values
      • suffix

        private java.lang.String suffix
    • Constructor Detail

      • SuffixFileMapper

        public SuffixFileMapper()
    • Method Detail

      • getSuffix

        public java.lang.String getSuffix()
        Returns the suffix to add.
      • setSuffix

        public void setSuffix​(java.lang.String suffix)
        Sets the suffix to add.