ComparerSettings
Leave feedback
On this page
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);
}
| Constructor | Description |
|---|---|
| ComparerSettings() | Instantiates new instance of ComparerSettings class. |
| ComparerSettings(ILogger logger) | Instantiates new instance of ComparerSettings class. |
| Method | Description |
|---|---|
| getLogger() | Gets the logger implementation used for logging. |
| setLogger(ILogger value) | Sets the logger implementation for logging. |
public ComparerSettings()
Instantiates new instance of ComparerSettings class.
public ComparerSettings(ILogger logger)
Instantiates new instance of ComparerSettings class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| logger | com.groupdocs.foundation.logging.ILogger | logger to be used |
public final ILogger getLogger()
Gets the logger implementation used for logging.
Returns: com.groupdocs.foundation.logging.ILogger - the logger
public final void setLogger(ILogger value)
Sets the logger implementation for logging.
Use com.groupdocs.foundation.logging.NullLogger#NULL_LOGGER.NULL_LOGGER to disable logging.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | com.groupdocs.foundation.logging.ILogger | the logger implementation to set |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.