Package org.codehaus.plexus.components.io.filemappers
File Mappers
File mappers can be used, for example, when files are being copied, moved, archived, or unarchived. The purpose of a file mapper is to select the target files name and destination.
Examples:
- The IdentityMapper is a trivial file mapper, which leaves all file names are unchanged. This is mainly useful as a default file mapper.
- The FileNameExtensionMapper changes the
file names extension. This can be used, for example, when you run the
FOP transformer to produce PDF.
Of course, you would want the created files to have the extension
.pdf
, rather than.xml
.
-
Interface Summary Interface Description FileMapper Interface of a component, which may be used to map file names. -
Class Summary Class Description AbstractFileMapper Abstract base class for deriving file mappers.DefaultFileMapper Alias forIdentityMapper
FileExtensionMapper An implementation ofFileMapper
, which changes the files extension.FlattenFileMapper Implementation of a flattening file mapper: Removes all directory parts.IdentityMapper Default implementation ofFileMapper
, which performs the identity mapping: All names are left unchanged.MergeFileMapper A file mapper, which maps to a constant target name.PrefixFileMapper A file mapper, which maps by adding a prefix.RegExpFileMapper Implementation of a file mapper, which uses regular expressions.SuffixFileMapper A file mapper, which maps by adding a suffix to the filename.