public class FlatFileNameMapper extends Object implements FileNameMapper
This is the default FileNameMapper for the copy and move tasks if the flatten attribute has been set.
| Constructor and Description |
|---|
FlatFileNameMapper() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
mapFileName(String sourceFileName)
Returns an one-element array containing the source file name
without any leading directory information.
|
void |
setFrom(String from)
Ignored.
|
void |
setTo(String to)
Ignored.
|
public void setFrom(String from)
setFrom in interface FileNameMapperpublic void setTo(String to)
setTo in interface FileNameMapperpublic String[] mapFileName(String sourceFileName)
mapFileName in interface FileNameMappersourceFileName - the name of the source file relative to
some given basedirectory.Copyright © 2001–2025. All rights reserved.