Package org.verapdf.core.utils
Class SingleOutputDirMapper
java.lang.Object
org.verapdf.core.utils.SingleOutputDirMapper
- All Implemented Interfaces:
FileOutputMapper
- Version:
- 0.1 Created 16 Nov 2016:07:19:45
- Author:
- Carl Wilson carlwilson AT github
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
addPrefixAndSuffix
(File orig, FileOutputMapper mapper) protected File
Map an original source file to an output file using the getPrefix() as the file name prefix and get suffix as the suffix.toString()
-
Field Details
-
defaultPrefix
- See Also:
-
defaultSuffix
- See Also:
-
extSplitter
- See Also:
-
-
Method Details
-
doMapFile
-
getPrefix
- Specified by:
getPrefix
in interfaceFileOutputMapper
- Returns:
- the prefix added to the mapped file name
-
getSuffix
- Specified by:
getSuffix
in interfaceFileOutputMapper
- Returns:
- the suffix appended to the mapped name
-
mapFile
Description copied from interface:FileOutputMapper
Map an original source file to an output file using the getPrefix() as the file name prefix and get suffix as the suffix. The location of the final file will be subject to the mapping rules of the particular implementation. Note that the file returned won't necessarily exist and will be untested regards write capability and the like.- Specified by:
mapFile
in interfaceFileOutputMapper
- Returns:
- the
File
object for the mapped file. - Throws:
VeraPDFException
- if there's a problem creating the mapped file
-
addPrefixAndSuffix
-
toString
-