public class RedactorConfiguration extends Object
Provides access to a list of supported formats, built-in and custom user formats.
Learn more
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);
Constructor and Description |
---|
RedactorConfiguration() |
Modifier and Type | Method and Description |
---|---|
DocumentFormatConfiguration |
findFormat(String fileExtension)
Finds format configurations for a given file extension.
|
List<DocumentFormatConfiguration> |
getAvailableFormats()
Gets a list of recognized formats, see
DocumentFormatConfiguration . |
public final List<DocumentFormatConfiguration> getAvailableFormats()
Gets a list of recognized formats, see DocumentFormatConfiguration
.
DocumentFormatConfiguration
.public final DocumentFormatConfiguration findFormat(String fileExtension)
Finds format configurations for a given file extension.
fileExtension
- File extension, format is ".ext"DocumentFormatConfiguration
, null otherwise