RedactorConfiguration
Contents
[
Hide
]
Inheritance: java.lang.Object
public class RedactorConfiguration
Provides access to a list of supported formats, built-in and custom user formats.
Learn more
- More details about GroupDocs.Redaction configuration: Extend supported extensions list
- More details about implementing custom formats: Create custom format handler
The following example demonstrates how to add a custom user format handler.
DocumentFormatConfiguration adobePhotoshopSettings = new DocumentFormatConfiguration();
adobePhotoshopSettings.setExtensionFilter(".psd");
adobePhotoshopSettings.setDocumentType(MyAdobePhotoshopFormatInstance.class);
RedactorConfiguration configuration = RedactorConfiguration.getInstance();
configuration.getAvailableFormats().add(adobePhotoshopSettings);
Constructors
Constructor | Description |
---|---|
RedactorConfiguration() |
Methods
Method | Description |
---|---|
getAvailableFormats() | Gets a list of recognized formats, see DocumentFormatConfiguration . |
findFormat(String fileExtension) | Finds format configurations for a given file extension. |
RedactorConfiguration()
public RedactorConfiguration()
getAvailableFormats()
public final List<DocumentFormatConfiguration> getAvailableFormats()
Gets a list of recognized formats, see DocumentFormatConfiguration .
Returns: java.util.List<com.groupdocs.redaction.configuration.DocumentFormatConfiguration> - A list of recognized formats, see DocumentFormatConfiguration .
findFormat(String fileExtension)
public final DocumentFormatConfiguration findFormat(String fileExtension)
Finds format configurations for a given file extension.
Parameters:
Parameter | Type | Description |
---|---|---|
fileExtension | java.lang.String | File extension, format is “.ext” |
Returns: DocumentFormatConfiguration - If found, instance of DocumentFormatConfiguration , null otherwise