public class ComparerSettings extends Object
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);
}
com.groupdocs.comparison.logging.ILogger,
com.groupdocs.comparison.logging.ConsoleLogger| Constructor and Description |
|---|
ComparerSettings()
Instantiates new instance of ComparerSettings class.
|
ComparerSettings(com.groupdocs.foundation.logging.ILogger logger)
Instantiates new instance of ComparerSettings class.
|
| Modifier and Type | Method and Description |
|---|---|
com.groupdocs.foundation.logging.ILogger |
getLogger()
Gets the logger implementation used for logging.
|
void |
setLogger(com.groupdocs.foundation.logging.ILogger value)
Sets the logger implementation for logging.
|
public ComparerSettings()
Instantiates new instance of ComparerSettings class.
public ComparerSettings(com.groupdocs.foundation.logging.ILogger logger)
Instantiates new instance of ComparerSettings class.
logger - logger to be usedpublic final com.groupdocs.foundation.logging.ILogger getLogger()
Gets the logger implementation used for logging.
public final void setLogger(com.groupdocs.foundation.logging.ILogger value)
Sets the logger implementation for logging.
Use com.groupdocs.comparison.logging.NullLogger#NULL_LOGGER to disable logging.
value - the logger implementation to setCopyright © 2024. All rights reserved.