Enum EMime

    • Enum Constant Detail

      • APP_JSON

        public static final EMime APP_JSON
      • APP_XML

        public static final EMime APP_XML
      • APP_OCTET

        public static final EMime APP_OCTET
      • APP_PDF

        public static final EMime APP_PDF
      • APP_ZIP

        public static final EMime APP_ZIP
      • APP_JAVASCRIPT

        public static final EMime APP_JAVASCRIPT
      • TEXT_CALENDAR

        public static final EMime TEXT_CALENDAR
      • TEXT_HTML

        public static final EMime TEXT_HTML
      • TEXT_PLAIN

        public static final EMime TEXT_PLAIN
      • TEXT_CSS

        public static final EMime TEXT_CSS
      • IMG_PNG

        public static final EMime IMG_PNG
      • IMG_JPG

        public static final EMime IMG_JPG
    • Field Detail

      • contentType

        public final String contentType
      • defaultExtension

        public final String defaultExtension
    • Method Detail

      • values

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

        public static EMime 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
      • getByContentType

        public static EMime getByContentType​(String contentType)
      • changeExtension

        public String changeExtension​(String fileName)
      • getContentType

        public String getContentType()