com.groupdocs.redaction.redactions

Class CellColumnRedaction



  • public class CellColumnRedaction
    extends TextRedaction

    Represents a text redaction that replaces text in a spreadsheet documents (CSV, Excel, etc.).

    • Constructor Detail

      • CellColumnRedaction

        public CellColumnRedaction(CellFilter filter,
                           Pattern regEx,
                           ReplacementOptions options)

        Initializes a new instance of CellColumnRedaction class.

        Parameters:
        filter - Column and worksheet filter
        regEx - Regular expression to search and replace
        options - Replacement options
    • Method Detail

      • getPattern

        public final Pattern getPattern()

        Gets the regular expression to match.

        Returns:
        The regular expression to match.
      • getFilter

        public final CellFilter getFilter()

        Gets the column and worksheet filter.

        Returns:
        The column and worksheet filter.
      • applyTo

        public RedactorLogEntry applyTo(DocumentFormatInstance formatInstance)

        Applies the redaction to a given format instance.

        Specified by:
        applyTo in class Redaction
        Parameters:
        formatInstance - An instance of a document to apply redaction
        Returns:
        Status of the redaction: success/failure and error message if any