Package org.codehaus.plexus.components.io.filemappers
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
.
-
ClassDescriptionAbstract base class for deriving file mappers.Alias for
IdentityMapper
An implementation ofFileMapper
, which changes the files extension.Interface of a component, which may be used to map file names.Implementation of a flattening file mapper: Removes all directory parts.Default implementation ofFileMapper
, which performs the identity mapping: All names are left unchanged.A file mapper, which maps to a constant target name.A file mapper, which maps by adding a prefix.Implementation of a file mapper, which uses regular expressions.A file mapper, which maps by adding a suffix to the filename.