ITextualFormatInstance
public interface ITextualFormatInstance
Defines methods that are required for redacting textual data in any document, containing text.
Learn more
- More details about applying redactions: Redaction basics
- More details about document text redactions: Text redactions
- More details about implementing custom formats: Create custom format handler
Methods
Method | Description |
---|---|
replaceText(Pattern regularExpression, ReplacementOptions options) | Replaces all matches of the regular expression with a given replacement. |
replaceText(Pattern regularExpression, ReplacementOptions options)
public abstract RedactionResult replaceText(Pattern regularExpression, ReplacementOptions options)
Replaces all matches of the regular expression with a given replacement.
Parameters:
Parameter | Type | Description |
---|---|---|
regularExpression | java.util.regex.Pattern | Regular expression to search and replace |
options | ReplacementOptions | allow to set textual replacement or color for redaction block |
Returns: RedactionResult - Text replacement result