Enum MIME

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MIME>

    public enum MIME
    extends java.lang.Enum<MIME>
    Enum MIME.
    Defines the different document mime types like text/rtf, application/pdf and image/gif.
    • Enum Constant Detail

      • APP_WORD

        public static final MIME APP_WORD
      • APP_VND_WORD

        public static final MIME APP_VND_WORD
      • APP_RTF

        public static final MIME APP_RTF
      • APP_PPT

        public static final MIME APP_PPT
      • APP_VND_PPT

        public static final MIME APP_VND_PPT
      • APP_VND_PPTX

        public static final MIME APP_VND_PPTX
      • APP_VND_XLS

        public static final MIME APP_VND_XLS
      • APP_XLS

        public static final MIME APP_XLS
      • APP_VND_XLSX

        public static final MIME APP_VND_XLSX
      • TEXT_RTF

        public static final MIME TEXT_RTF
      • APP_PDF

        public static final MIME APP_PDF
      • APP_EML

        public static final MIME APP_EML
      • APP_OUTLOOK

        public static final MIME APP_OUTLOOK
      • APP_VND_OUTLOOK

        public static final MIME APP_VND_OUTLOOK
      • TEXT_PLAIN

        public static final MIME TEXT_PLAIN
      • IMAGE_TIFF

        public static final MIME IMAGE_TIFF
      • IMAGE_GIF

        public static final MIME IMAGE_GIF
      • IMAGE_BMP

        public static final MIME IMAGE_BMP
      • IMAGE_PNG

        public static final MIME IMAGE_PNG
      • IMAGE_JPEG

        public static final MIME IMAGE_JPEG
    • Method Detail

      • values

        public static MIME[] 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 (MIME c : MIME.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MIME valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getMime

        public java.lang.String getMime()