Package org.apache.tools.ant.util
Class IdentityMapper
- java.lang.Object
- 
- org.apache.tools.ant.util.IdentityMapper
 
- 
- All Implemented Interfaces:
- FileNameMapper
 
 public class IdentityMapper extends java.lang.Object implements FileNameMapper Implementation of FileNameMapper that always returns the source file name.This is the default FileNameMapper for the copy and move tasks. 
- 
- 
Constructor SummaryConstructors Constructor Description IdentityMapper()
 - 
Method SummaryModifier and Type Method Description java.lang.String[]mapFileName(java.lang.String sourceFileName)Returns an one-element array containing the source file name.voidsetFrom(java.lang.String from)Ignored.voidsetTo(java.lang.String to)Ignored.
 
- 
- 
- 
Method Detail- 
setFrompublic void setFrom(java.lang.String from) Ignored.- Specified by:
- setFromin interface- FileNameMapper
- Parameters:
- from- ignored.
 
 - 
setTopublic void setTo(java.lang.String to) Ignored.- Specified by:
- setToin interface- FileNameMapper
- Parameters:
- to- ignored.
 
 - 
mapFileNamepublic java.lang.String[] mapFileName(java.lang.String sourceFileName) Returns an one-element array containing the source file name.- Specified by:
- mapFileNamein interface- FileNameMapper
- Parameters:
- sourceFileName- the name to map.
- Returns:
- the source filename in a one-element array.
 
 
- 
 
-