com.groupdocs.redaction.configuration

Class DocumentFormatConfiguration

  • java.lang.Object
    • com.groupdocs.redaction.configuration.DocumentFormatConfiguration


  • public class DocumentFormatConfiguration
    extends Object

    Represents a type reference for DocumentFormatInstance-derived class and supported file extensions list for faster format detection.

    • Constructor Detail

      • DocumentFormatConfiguration

        public DocumentFormatConfiguration()

        Initializes a new instance of DocumentFormatConfiguration class.

    • Method Detail

      • getExtensionFilter

        public final String getExtensionFilter()

        Gets a comma (",") delimited list of file extensions (e.g. ".pdf"), case insensitive.

        Returns:
        A comma (",") delimited list of file extensions (e.g. ".pdf"), case insensitive.
      • setExtensionFilter

        public final void setExtensionFilter(String value)

        Sets a comma (",") delimited list of file extensions (e.g. ".pdf"), case insensitive.

        Parameters:
        value - A comma (",") delimited list of file extensions (e.g. ".pdf"), case insensitive.
      • getDocumentType

        public final Class getDocumentType()

        Gets the type of a class, inheriting from DocumentFormatInstance.

        Returns:
        The type of a class, inheriting from DocumentFormatInstance.
      • setDocumentType

        public final void setDocumentType(Class value)

        Sets the type of a class, inheriting from DocumentFormatInstance.

        Parameters:
        value - The type of a class, inheriting from DocumentFormatInstance.
      • getInitializationData

        public final com.aspose.ms.System.Collections.Generic.Dictionary<String,String> getInitializationData()

        Gets data, required for DocumentFormatInstance initialization.

        Returns:
        Data, required for DocumentFormatInstance initialization.
      • setInitializationData

        public final void setInitializationData(com.aspose.ms.System.Collections.Generic.Dictionary<String,String> value)

        Sets data, required for DocumentFormatInstance initialization.

        Parameters:
        value - Data, required for DocumentFormatInstance initialization.
      • supportsExtension

        public final boolean supportsExtension(String fileExtension)

        Checks if a given file extension can be handled as DocumentType.

        Parameters:
        fileExtension - File extension, format is ".ext"
        Returns:
        True if the extension is listed in ExtensionFilter