Get supported file formats

Get supported file formats

GroupDocs.Redaction allows to get the list of all supported file formats by these steps:

  • Call *getSupportedFileTypes *of FileType class;
  • Enumerate through the collection of FileType objects.

The following example demonstrates how to get supported file formats list.

Iterable<FileType> supportedFileTypes = FileType.getSupportedFileTypes();
Iterator iterator = supportedFileTypes.iterator();      
while (iterator.hasNext())
{
    FileType fileType = (FileType)iterator.next();
    System.out.println(fileType);
}