Class FilterMapper

All Implemented Interfaces:
Cloneable, FileNameMapper

public class FilterMapper extends FilterChain implements FileNameMapper
This is a FileNameMapper based on a FilterChain.
  • Constructor Details

    • FilterMapper

      public FilterMapper()
  • Method Details

    • setFrom

      public void setFrom(String from)
      From attribute not supported.
      Specified by:
      setFrom in interface FileNameMapper
      Parameters:
      from - a string
      Throws:
      BuildException - always
    • setTo

      public void setTo(String to)
      From attribute not supported.
      Specified by:
      setTo in interface FileNameMapper
      Parameters:
      to - a string
      Throws:
      BuildException - always
    • mapFileName

      public String[] mapFileName(String sourceFileName)
      Return the result of the filters on the sourcefilename.
      Specified by:
      mapFileName in interface FileNameMapper
      Parameters:
      sourceFileName - the filename to map
      Returns:
      a one-element array of converted filenames, or null if the filterchain returns an empty string.