Enum EMime

java.lang.Object
java.lang.Enum<EMime>
de.xima.fc.mdl.enums.EMime
All Implemented Interfaces:
Serializable, Comparable<EMime>

public enum EMime extends Enum<EMime>
  • Enum Constant Details

    • 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_SVG

      public static final EMime IMG_SVG
    • IMG_JPG

      public static final EMime IMG_JPG
  • Field Details

  • Method Details

    • values

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

      public String getDefaultExtension()
      Returns:
      The most common file extension for this mime type.