Enum Constant and Description |
---|
CSS
CSS code.
|
CSV
CSV, i.e.
|
FONT
Fonts (general format).
|
FONT_TTF |
FONT_WOFF |
FONT_WOFF_2 |
GIF
GIF image format.
|
HTML
HTML text.
|
ICON
Icon format.
|
JAVASCRIPT
JavaScript code.
|
JPEG
JPEG image format.
|
JSON
JSON code.
|
MD
Markdown
|
MP3
MP3 files.
|
MULTIPART_FORM_DATA
multipart/form-data
|
OCTET_STREAM
Octet stream (binary data).
|
PDF
Portable document format.
|
PLAIN
Plain text.
|
PNG
PNG image format.
|
SOAP
SOAP request (sent e.g.
|
SVG
SVG vector image format.
|
URL_ENCODED_FORM_DATA
Url encoded form data.
|
XML
XML text.
|
ZIP
ZIP.
|
Modifier and Type | Method and Description |
---|---|
static EMimeType |
fromType(java.lang.String type)
Returns the enum literal for a given type string (or null).
|
static java.util.Set<java.lang.String> |
getAllSupportedMimeTypes()
Returns all supported mime types as a Set of Strings.
|
java.lang.String |
getType()
Returns the type string.
|
static EMimeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EMimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EMimeType JAVASCRIPT
public static final EMimeType MULTIPART_FORM_DATA
public static final EMimeType URL_ENCODED_FORM_DATA
public static final EMimeType FONT_WOFF_2
public static final EMimeType OCTET_STREAM
public static EMimeType[] values()
for (EMimeType c : EMimeType.values()) System.out.println(c);
public static EMimeType 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 getType()
public static EMimeType fromType(java.lang.String type)
public static java.util.Set<java.lang.String> getAllSupportedMimeTypes()