com.groupdocs.conversion.filetypes

Class FileType

    • Field Detail

      • Unknown

        public static final FileType Unknown

        Unknown file type

    • Constructor Detail

      • FileType

        public FileType()
        Serialization constructor
    • Method Detail

      • getFileFormat

        public final String getFileFormat()

        The file format

      • getExtension

        public final String getExtension()

        The file extension

      • getDescription

        public final String getDescription()
        Description of the file type
        Returns:
        description
      • fromFilename

        public static FileType fromFilename(String fileName)

        Returns FileType for specified fileName

        Parameters:
        fileName - The file name
        Returns:
        The file type of specified file name
      • fromExtension

        public static FileType fromExtension(String fileExtension)
        Gets FileType for provided fileExtension
        Parameters:
        fileExtension - file extension
        Returns:
        file type
      • fromStream

        public static FileType fromStream(InputStream inputStream)

        Returns FileType for provided document stream

        Parameters:
        inputStream - TStream which will be probed
        Returns:
        The file type of provided stream
      • getAllTypes

        public static <T extends FileTypeList<FileType> getAllTypes(Class<T> typeOfT)

        Returns all enumeration values.

        Returns:
        Enumerable of file types

        T: Enumerated object type.

      • toString

        public String toString()

        String representation

        Overrides:
        toString in class Enumeration
        Returns:
        String representation of file type
      • getConvertOptions

        public ConvertOptions getConvertOptions()
        Prepared default convert options for the file type
        Returns:
        NULL if the conversion to the type not supported