Package de.xima.fc.mdl.enums
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 Summary
Enum Constants Enum Constant Description APP_JAVASCRIPT
APP_JSON
APP_OCTET
APP_PDF
APP_XML
APP_ZIP
IMG_JPG
IMG_PNG
TEXT_CALENDAR
TEXT_CSS
TEXT_HTML
TEXT_PLAIN
-
Field Summary
Fields Modifier and Type Field Description String
contentType
Deprecated.UsegetContentType()
.String
defaultExtension
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
changeExtension(String fileName)
static EMime
getByContentType(String contentType)
String
getContentType()
String
getDefaultExtension()
static EMime
valueOf(String name)
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 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
@Deprecated public final String contentType
Deprecated.UsegetContentType()
.
-
defaultExtension
@Deprecated public final String defaultExtension
Deprecated.
-
-
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 nameNullPointerException
- if the argument is null
-
getContentType
public String getContentType()
-
getDefaultExtension
public String getDefaultExtension()
- Returns:
- The most common file extension for this mime type.
-
-