Package de.redsix.pdfcompare.env
Class ConfigFileEnvironment
- java.lang.Object
-
- de.redsix.pdfcompare.env.ConfigFileEnvironment
-
- All Implemented Interfaces:
Environment
public class ConfigFileEnvironment extends Object implements Environment
This environment uses Lightbend Config to read the configuration data. You can either provide a Lightbend Config object or give a File, Path or Reader where the config file can be read. System environment variables always take precedence over configurations from a file. The default configuration is also always read.
-
-
Constructor Summary
Constructors Constructor Description ConfigFileEnvironment(com.typesafe.config.Config config)ConfigFileEnvironment(File file)ConfigFileEnvironment(Reader reader)ConfigFileEnvironment(Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddEqualPagesToResult()booleanfailOnMissingIgnoreFile()ColorgetActualColor()doublegetAllowedDiffInPercent()intgetDocumentCacheSize()intgetDPI()ColorgetExpectedColor()intgetMaxImageSize()intgetMergeCacheSize()intgetNrOfImagesToCache()intgetOverallTimeout()intgetSwapCacheSize()PathgetTempDirectory()booleanuseParallelProcessing()
-
-
-
Method Detail
-
getTempDirectory
public Path getTempDirectory()
- Specified by:
getTempDirectoryin interfaceEnvironment
-
getNrOfImagesToCache
public int getNrOfImagesToCache()
- Specified by:
getNrOfImagesToCachein interfaceEnvironment
-
getMergeCacheSize
public int getMergeCacheSize()
- Specified by:
getMergeCacheSizein interfaceEnvironment
-
getSwapCacheSize
public int getSwapCacheSize()
- Specified by:
getSwapCacheSizein interfaceEnvironment
-
getDocumentCacheSize
public int getDocumentCacheSize()
- Specified by:
getDocumentCacheSizein interfaceEnvironment
-
getMaxImageSize
public int getMaxImageSize()
- Specified by:
getMaxImageSizein interfaceEnvironment
-
getOverallTimeout
public int getOverallTimeout()
- Specified by:
getOverallTimeoutin interfaceEnvironment
-
useParallelProcessing
public boolean useParallelProcessing()
- Specified by:
useParallelProcessingin interfaceEnvironment
-
getAllowedDiffInPercent
public double getAllowedDiffInPercent()
- Specified by:
getAllowedDiffInPercentin interfaceEnvironment
-
getExpectedColor
public Color getExpectedColor()
- Specified by:
getExpectedColorin interfaceEnvironment
-
getActualColor
public Color getActualColor()
- Specified by:
getActualColorin interfaceEnvironment
-
getDPI
public int getDPI()
- Specified by:
getDPIin interfaceEnvironment
-
addEqualPagesToResult
public boolean addEqualPagesToResult()
- Specified by:
addEqualPagesToResultin interfaceEnvironment
-
failOnMissingIgnoreFile
public boolean failOnMissingIgnoreFile()
- Specified by:
failOnMissingIgnoreFilein interfaceEnvironment
-
-