public class MimeTypes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MIME_BMP
BMP MIME type: image/bmp
|
static String |
MIME_EPS
EPS MIME type: image/x-eps
|
static String |
MIME_GIF
GIF MIME type: image/gif
|
static String |
MIME_JPEG
JPEG MIME type: image/jpeg
|
static String |
MIME_PNG
PNG MIME type: image/x-png
|
static String |
MIME_SVG
SVG MIME type: image/svg+xml
|
static String |
MIME_TIFF
TIFF MIME type: image/tiff
|
| Modifier | Constructor and Description |
|---|---|
protected |
MimeTypes()
Utility class: Constructor prevents instantiating when subclassed.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
expandFormat(String format)
Converts a short format name, such as "svg" or "eps", to its MIME type,
if necessary.
|
static boolean |
isBitmapFormat(String format)
Indicates whether a format is a bitmap format.
|
public static final String MIME_SVG
public static final String MIME_EPS
public static final String MIME_TIFF
public static final String MIME_JPEG
public static final String MIME_PNG
public static final String MIME_GIF
public static final String MIME_BMP
protected MimeTypes()
public static String expandFormat(String format)
format - short format name or MIME typepublic static boolean isBitmapFormat(String format)
format - short format name or MIME typeCopyright © 2003–2023. All rights reserved.