Enum FileMimeType

    • Enum Constant Detail

      • MS_WORD

        public static final FileMimeType MS_WORD
        Microsoft Word document
      • MS_EXCEL

        public static final FileMimeType MS_EXCEL
        Microsoft Excel spreadsheet
      • MS_POWERPOINT

        public static final FileMimeType MS_POWERPOINT
        Microsoft PowerPoint presentation
      • OD_TEXT

        public static final FileMimeType OD_TEXT
        OpenDocument text
      • OD_SPREADSHEET

        public static final FileMimeType OD_SPREADSHEET
        OpenDocument spreadsheet
      • OD_PRESENTATION

        public static final FileMimeType OD_PRESENTATION
        OpenDocument presentation
    • Method Detail

      • values

        public static FileMimeType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FileMimeType c : FileMimeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FileMimeType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getMimeTypes

        public List<String> getMimeTypes()