com.groupdocs.redaction.options

Class RedactorSettings



  • public class RedactorSettings
    extends Object

    Represents redaction settings, allowing to customize the redaction process.


    Learn more

    • Constructor Detail

      • RedactorSettings

        public RedactorSettings()

        Initializes a new instance of the RedactorSettings class.

      • RedactorSettings

        public RedactorSettings(ILogger logger)

        Initializes a new instance of the RedactorSettings class with a given ILogger instance.

        Parameters:
        logger - An instance of a class, implementing ILogger interface
      • RedactorSettings

        public RedactorSettings(IRedactionCallback callback)

        Initializes a new instance of the RedactorSettings class with a given IRedactionCallback instance.

        Parameters:
        callback - An instance of a class, implementing IRedactionCallbck interface
      • RedactorSettings

        public RedactorSettings(IOcrConnector ocrConnector)

        Initializes a new instance of the RedactorSettings class with a given IOcrConnector instance.

        Parameters:
        ocrConnector - A valid implementation of IOcrConnector interface
      • RedactorSettings

        public RedactorSettings(ILogger logger,
                        IRedactionCallback callback)

        Initializes a new instance of the RedactorSettings class with given ILogger and IRedactionCallback instances.

        Parameters:
        logger - An instance of a class, implementing ILogger interface
        callback - An instance of a class, implementing IRedactionCallbck interface
      • RedactorSettings

        public RedactorSettings(ILogger logger,
                        IRedactionCallback callback,
                        IOcrConnector ocrConnector)

        Initializes a new instance of the RedactorSettings class with given ILogger, IRedactionCallback and IOcrConnector instances.

        Parameters:
        logger - An instance of a class, implementing ILogger interface
        callback - An instance of a class, implementing IRedactionCallbck interface
        ocrConnector - An instance of IOcrConnector interface implementation. Can be null
    • Method Detail

      • getLogger

        public final ILogger getLogger()

        Gets an instance of a class, implementing ILogger, that is used for logging events and errors.

        Returns:
        An instance of a class, implementing ILogger, that is used for logging events and errors.
      • setLogger

        public final void setLogger(ILogger value)

        Sets an instance of a class, implementing ILogger, that is used for logging events and errors.

        Parameters:
        value - An instance of a class, implementing ILogger, that is used for logging events and errors.
      • getRedactionCallback

        public final IRedactionCallback getRedactionCallback()

        Gets an instance of a class, implementing IRedactionCallback.

        Returns:
        An instance of a class, implementing IRedactionCallback.
      • setRedactionCallback

        public final void setRedactionCallback(IRedactionCallback value)

        Sets an instance of a class, implementing IRedactionCallback.

        Parameters:
        value - An instance of a class, implementing IRedactionCallback.
      • getOcrConnector

        public final IOcrConnector getOcrConnector()

        Gets an instance of a class, implementing IOcrConnector interface.

        Returns:
        An instance of a class, implementing IOcrConnector interface.
      • setOcrConnector

        public final void setOcrConnector(IOcrConnector value)

        Sets an instance of a class, implementing IOcrConnector interface.

        Parameters:
        value - An instance of a class, implementing IOcrConnector interface.