ComparerSettings
Contents
[
Hide
]
Inheritance: java.lang.Object
public class ComparerSettings
Defines settings for customizing the behavior of the Comparer class.
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
final ComparerSettings comparerSettings = new ComparerSettings();
comparerSettings.setLogger(new ConsoleLogger(false, false, true, true));
comparer.compare(resultFile, comparerSettings);
}
Constructors
Constructor | Description |
---|---|
ComparerSettings() | Instantiates new instance of ComparerSettings class. |
ComparerSettings(ILogger logger) | Instantiates new instance of ComparerSettings class. |
Methods
Method | Description |
---|---|
getLogger() | Gets the logger implementation used for logging. |
setLogger(ILogger value) | Sets the logger implementation for logging. |
ComparerSettings()
public ComparerSettings()
Instantiates new instance of ComparerSettings class.
ComparerSettings(ILogger logger)
public ComparerSettings(ILogger logger)
Instantiates new instance of ComparerSettings class.
Parameters:
Parameter | Type | Description |
---|---|---|
logger | com.groupdocs.foundation.logging.ILogger | logger to be used |
getLogger()
public final ILogger getLogger()
Gets the logger implementation used for logging.
Returns: com.groupdocs.foundation.logging.ILogger - the logger
setLogger(ILogger value)
public final void setLogger(ILogger value)
Sets the logger implementation for logging.
Use com.groupdocs.comparison.logging.NullLogger#NULL_LOGGER.NULL_LOGGER to disable logging.
Parameters:
Parameter | Type | Description |
---|---|---|
value | com.groupdocs.foundation.logging.ILogger | the logger implementation to set |