Package org.verapdf.core.utils
Class FileOutputMappers
- java.lang.Object
-
- org.verapdf.core.utils.FileOutputMappers
-
public class FileOutputMappers extends Object
Factory for various kinds ofFileOutputMapper.- Version:
- 0.1 Created 13 Nov 2016:14:07:32
- Author:
- Carl Wilson carlwilson AT github
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileOutputMapperfold(String path)static FileOutputMapperfold(String path, String prefix)static FileOutputMapperfold(String path, String prefix, String suffix)Maps to a relative subfolder of the original with no prefix or suffixstatic FileOutputMappersibFiles()Get aFileOutputMapperinstance that maps output to the same directory as the source with a veraPDF_ prefixstatic FileOutputMappersibFiles(String prefix)Get aFileOutputMapperinstance that maps output to the same directory as the source with the requested prefixstatic FileOutputMappersibFiles(String prefix, String suffix)Get aFileOutputMapperinstance that maps output to the same directory as the source with the requested prefix and suffixstatic FileOutputMappersubFold(String relativePath)Maps to a relative subfolder of the original with no prefix or suffixstatic FileOutputMappersubFold(String relativePath, String prefix)Maps to a relative subfolder of the original with no prefix or suffixstatic FileOutputMappersubFold(String relativePath, String prefix, String suffix)Maps to a relative subfolder of the original with no prefix or suffixstatic FileOutputMappertoRelativeDest(Path src, Path dest)static FileOutputMappertoRelativeDest(Path src, Path dest, String prefix)static FileOutputMappertoRelativeDest(Path src, Path dest, String prefix, String suffix)static FileOutputMapperverFold(String path)static FileOutputMapperverFold(String path, String prefix)static FileOutputMapperverFold(String path, String prefix, String suffix)Maps to a relative subfolder of the original with no prefix or suffixstatic FileOutputMapperverSibFiles()Get aFileOutputMapperinstance that maps output to the same directory as the source with a veraPDF_ prefixstatic FileOutputMapperverSibFiles(String prefix)Get aFileOutputMapperinstance that maps output to the same directory as the source with the requested prefixstatic FileOutputMapperverSibFiles(String prefix, String suffix)Get aFileOutputMapperinstance that maps output to the same directory as the source with the requested prefix and suffixstatic FileOutputMapperverSubFold(String relativePath)Maps to a relative subfolder of the original with no prefix or suffixstatic FileOutputMapperverSubFold(String relativePath, String prefix)Maps to a relative subfolder of the original with no prefix or suffixstatic FileOutputMapperverSubFold(String relativePath, String prefix, String suffix)Maps to a relative subfolder of the original with no prefix or suffix
-
-
-
Method Detail
-
sibFiles
public static final FileOutputMapper sibFiles()
Get aFileOutputMapperinstance that maps output to the same directory as the source with a veraPDF_ prefix- Returns:
- a new FileOutputMapper
-
verSibFiles
public static final FileOutputMapper verSibFiles()
Get aFileOutputMapperinstance that maps output to the same directory as the source with a veraPDF_ prefix- Returns:
- a new FileOutputMapper
-
sibFiles
public static final FileOutputMapper sibFiles(String prefix)
Get aFileOutputMapperinstance that maps output to the same directory as the source with the requested prefix- Parameters:
prefix- the requested prefix, can not be null or empty- Returns:
- a new FileOutputMapper
-
verSibFiles
public static final FileOutputMapper verSibFiles(String prefix)
Get aFileOutputMapperinstance that maps output to the same directory as the source with the requested prefix- Parameters:
prefix- the requested prefix, can not be null or empty- Returns:
- a new FileOutputMapper
-
sibFiles
public static final FileOutputMapper sibFiles(String prefix, String suffix)
Get aFileOutputMapperinstance that maps output to the same directory as the source with the requested prefix and suffix- Parameters:
prefix- the prefix for generated files, can not be null or emptysuffix- the suffix for generated files, can not be null- Returns:
- a new FileOutputMapper
-
verSibFiles
public static final FileOutputMapper verSibFiles(String prefix, String suffix)
Get aFileOutputMapperinstance that maps output to the same directory as the source with the requested prefix and suffix- Parameters:
prefix- the prefix for generated files, can not be null or emptysuffix- the suffix for generated files, can not be null- Returns:
- a new FileOutputMapper
-
subFold
public static final FileOutputMapper subFold(String relativePath)
Maps to a relative subfolder of the original with no prefix or suffix- Parameters:
relativePath- the relative path to the results folder from the original source file location, can not be null or empty- Returns:
- a new FileOutputMapper
-
verSubFold
public static final FileOutputMapper verSubFold(String relativePath)
Maps to a relative subfolder of the original with no prefix or suffix- Parameters:
relativePath- the relative path to the results folder from the original source file location, can not be null or empty- Returns:
- a new FileOutputMapper
-
subFold
public static final FileOutputMapper subFold(String relativePath, String prefix)
Maps to a relative subfolder of the original with no prefix or suffix- Parameters:
relativePath- the relative path to the results folder from the original source file locationprefix- the prefix for generated files, can not be null or empty- Returns:
- a new FileOutputMapper
-
verSubFold
public static final FileOutputMapper verSubFold(String relativePath, String prefix)
Maps to a relative subfolder of the original with no prefix or suffix- Parameters:
relativePath- the relative path to the results folder from the original source file locationprefix- the prefix for generated files, can not be null or empty- Returns:
- a new FileOutputMapper
-
subFold
public static final FileOutputMapper subFold(String relativePath, String prefix, String suffix)
Maps to a relative subfolder of the original with no prefix or suffix- Parameters:
relativePath- the relative path to the results folder from the original source file locationprefix- the prefix for generated files, can not be null or empty- Returns:
- a new FileOutputMapper
-
verSubFold
public static final FileOutputMapper verSubFold(String relativePath, String prefix, String suffix)
Maps to a relative subfolder of the original with no prefix or suffix- Parameters:
relativePath- the relative path to the results folder from the original source file locationprefix- the prefix for generated files, can not be null or empty- Returns:
- a new FileOutputMapper
-
toRelativeDest
public static final FileOutputMapper toRelativeDest(Path src, Path dest)
-
toRelativeDest
public static final FileOutputMapper toRelativeDest(Path src, Path dest, String prefix)
-
toRelativeDest
public static final FileOutputMapper toRelativeDest(Path src, Path dest, String prefix, String suffix)
-
fold
public static final FileOutputMapper fold(String path)
-
verFold
public static final FileOutputMapper verFold(String path)
-
fold
public static final FileOutputMapper fold(String path, String prefix)
-
verFold
public static final FileOutputMapper verFold(String path, String prefix)
-
fold
public static final FileOutputMapper fold(String path, String prefix, String suffix)
Maps to a relative subfolder of the original with no prefix or suffix- Parameters:
relativePath- the relative path to the results folder from the original source file locationprefix- the prefix for generated files, can not be null or empty- Returns:
- a new FileOutputMapper
-
verFold
public static final FileOutputMapper verFold(String path, String prefix, String suffix)
Maps to a relative subfolder of the original with no prefix or suffix- Parameters:
relativePath- the relative path to the results folder from the original source file locationprefix- the prefix for generated files, can not be null or empty- Returns:
- a new FileOutputMapper
-
-