GroupDocs.Redaction for Java 20.1 Release Notes
Major Features
There are the following improvements in this release:
- Redactor settings including logging interface
Full List of Issues Covering all Changes in this Release
Key | Summary | Category |
---|---|---|
REDACTIONJAVA-61 | Implement standard logging interface | Improvement |
Public API and Backward Incompatible Changes
Implement standard logging interface
Implement standard logging interface for GroupDocs projects.
Public API changes
Class RedactorSettings has been added to com.groupdocs.redaction.optionspackage.
Interface ILogger has been added to com.groupdocs.redaction.optionspackage.
Methods Redactor.getRedactionCallback() and Redactor.setRedactionCallback(IRedactionCallback) have been declared deprecated.
Method isRedactionAccepted(RedactionDescription) has been added to com.groupdocs.redaction.integration.DocumentFormatInstanceclass.
Method a****ddRange(MetadataCollection) has been added to com.groupdocs.redaction.integration.MetadataCollectionclass.
Constructors, accepting an instance of RedactorSettings class have been added to com.groupdocs.redaction.Redactor class.
Method DocumentFormatInstance.initialize() now requires an instance ofRedactorSettings classas a second parameter.
Method String getDescription() has been added to com.groupdocs.redaction.Redaction class.
Usecases
The following example demonstrates how to set instances of MyCustomLogger and MyRedactionCallback classes:
Redactor redactor = new Redactor("\\SampleFile.doc", new LoadOptions(),
new RedactorSettings(new MyCustomLogger(), new MyRedactionCallback())))
redactor.apply(new ExactPhraseRedaction("John Doe"), new ReplacementOptions(Color.RED));
redactor.save();
redactor.close();