com.groupdocs.redaction

Class RedactionPolicy



  • public class RedactionPolicy
    extends Object

    Represents sanification policy, containing a set of specific redactions to apply

    • Constructor Detail

      • RedactionPolicy

        public RedactionPolicy()

        Create a new instance of Redaction policy

    • Method Detail

      • getRedactions

        public final Redaction[] getRedactions()

        Array of fully configured Redaction-derived classes

      • load

        public static RedactionPolicy load(String filePath)

        Creates an instance of RedactionPolicy from specified file

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

        public static RedactionPolicy load(InputStream input)

        Creates an instance of RedactionPolicy from stream

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