public final class MimeType extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_JSON
"application/json".
|
static String |
APPLICATION_OCTET_STREAM
"application/octet-stream".
|
static String |
APPLICATION_XHTML
application/xhtml+xml.
|
static String |
APPLICATION_XML
application/xml.
|
static String |
IMAGE_GIF
"image/gif".
|
static String |
IMAGE_JPEG
"image/jpeg".
|
static String |
IMAGE_PNG
"image/png".
|
static String |
TEXT_CSS
"text/css".
|
static String |
TEXT_HTML
"text/html".
|
static String |
TEXT_JAVASCRIPT
"text/javascript".
|
static String |
TEXT_PLAIN
"text/plain".
|
static String |
TEXT_XML
"text/xml".
|
Modifier and Type | Method and Description |
---|---|
static String |
getFileExtension(String contentType)
Gets the preferred file extension for a content type.
|
static boolean |
isJavascriptMimeType(String mimeType)
|
static boolean |
isObsoleteJavascriptMimeType(String mimeType)
|
public static final String TEXT_JAVASCRIPT
public static final String APPLICATION_OCTET_STREAM
public static final String APPLICATION_JSON
public static final String APPLICATION_XHTML
public static final String APPLICATION_XML
public static final String TEXT_CSS
public static final String TEXT_HTML
public static final String TEXT_XML
public static final String TEXT_PLAIN
public static final String IMAGE_GIF
public static final String IMAGE_JPEG
public static final String IMAGE_PNG
public static boolean isJavascriptMimeType(String mimeType)
mimeType
- the type to checkpublic static boolean isObsoleteJavascriptMimeType(String mimeType)
mimeType
- the type to checkCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.