Package de.xima.fc.mdl.enums
Enum EMime
- All Implemented Interfaces:
Serializable
,Comparable<EMime>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionchangeExtension
(String fileName) static EMime
getByContentType
(String contentType) static EMime
Returns the enum constant of this type with the specified name.static EMime[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
APP_JSON
-
APP_XML
-
APP_OCTET
-
APP_PDF
-
APP_ZIP
-
APP_JAVASCRIPT
-
TEXT_CALENDAR
-
TEXT_HTML
-
TEXT_PLAIN
-
TEXT_CSS
-
IMG_PNG
-
IMG_SVG
-
IMG_JPG
-
-
Field Details
-
contentType
Deprecated.UsegetContentType()
. This will be made private soon. -
defaultExtension
Deprecated.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getByContentType
-
changeExtension
-
getContentType
-
getDefaultExtension
- Returns:
- The most common file extension for this mime type.
-
getContentType()
.