| Enum Constant and Description |
|---|
CSS |
DEFAULT |
GIF |
HTML |
ICO |
JPG |
JS |
JSON |
PDF |
PNG |
SVG |
TEXT_PLAIN |
TTF |
XML |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType() |
static MIME |
getMime(java.lang.String extension) |
static MIME |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MIME[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MIME DEFAULT
public static final MIME CSS
public static final MIME ICO
public static final MIME JS
public static final MIME JSON
public static final MIME HTML
public static final MIME XML
public static final MIME GIF
public static final MIME JPG
public static final MIME PDF
public static final MIME PNG
public static final MIME SVG
public static final MIME TEXT_PLAIN
public static final MIME TTF
public static MIME[] values()
for (MIME c : MIME.values()) System.out.println(c);
public static MIME valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getContentType()
public static MIME getMime(java.lang.String extension)