com.groupdocs.redaction

Class RedactionPolicy



  • public class RedactionPolicy
    extends Object

    Represents a sanitization policy, containing a set of specific redactions to apply.


    <b>Learn more</b>
    • Constructor Detail

      • RedactionPolicy

        public RedactionPolicy()

        Creates a new instance of Redaction policy.

    • Method Detail

      • getRedactions

        public final Redaction[] getRedactions()

        Gets an array of fully configured Redaction-derived classes.

        Returns:
        An array of fully configured Redaction-derived classes.
      • load

        public static RedactionPolicy load(String filePath)

        Loads an instance of RedactionPolicy from a file path.

        Parameters:
        filePath - Path to XML file
        Returns:
        Redaction policy
      • load

        public static RedactionPolicy load(InputStream input)

        Loads an instance of RedactionPolicy from a stream.

        Parameters:
        input - Stream containing XML configuration
        Returns:
        Redaction policy