com.groupdocs.conversion.filetypes

Class FileType

    • Field Detail

      • Unknown

        public static final FileType Unknown

        Unknown file type

    • Constructor Detail

      • FileType

        protected FileType(String extension,
                String fileFormat)

        ctor

        Parameters:
        extension - File extension
        fileFormat - File format description
    • Method Detail

      • getFileFormat

        public final String getFileFormat()

        The file format

      • getExtension

        public final String getExtension()

        The file extension

      • from

        public static FileType from(String fileName)

        Returns FileType for specified fileName

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

        public static FileType from(InputStream streamFactory)

        Returns FileType for provided document stream

        Parameters:
        streamFactory - The method that returns document stream
        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.