public class IdentityMapper extends java.lang.Object implements FileNameMapper
This is the default FileNameMapper for the copy and move tasks.
Constructor and Description |
---|
IdentityMapper() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
mapFileName(java.lang.String sourceFileName)
Returns an one-element array containing the source file name.
|
void |
setFrom(java.lang.String from)
Ignored.
|
void |
setTo(java.lang.String to)
Ignored.
|
public void setFrom(java.lang.String from)
setFrom
in interface FileNameMapper
from
- ignored.public void setTo(java.lang.String to)
setTo
in interface FileNameMapper
to
- ignored.public java.lang.String[] mapFileName(java.lang.String sourceFileName)
mapFileName
in interface FileNameMapper
sourceFileName
- the name to map.