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
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringaddPrefixAndSuffix(File orig, FileOutputMapper mapper) protected FileMap 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:
getPrefixin interfaceFileOutputMapper- Returns:
- the prefix added to the mapped file name
-
getSuffix
- Specified by:
getSuffixin interfaceFileOutputMapper- Returns:
- the suffix appended to the mapped name
-
mapFile
Description copied from interface:FileOutputMapperMap 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:
mapFilein interfaceFileOutputMapper- Returns:
- the
Fileobject for the mapped file. - Throws:
VeraPDFException- if there's a problem creating the mapped file
-
addPrefixAndSuffix
-
toString
-