public enum FileMimeType extends java.lang.Enum<FileMimeType> implements HasMessageKey
| Enum Constant and Description |
|---|
AUDIO
Audio
|
HTML
HTML document
|
IMAGE
Image
|
MS_EXCEL
Microsoft Excel spreadsheet
|
MS_POWERPOINT
Microsoft PowerPoint presentation
|
MS_WORD
Microsoft Word document
|
OD_PRESENTATION
OpenDocument presentation
|
OD_SPREADSHEET
OpenDocument spreadsheet
|
OD_TEXT
OpenDocument text
|
OTHER
Other
|
PDF
PDF document
|
RTF
RTF document
|
TEXT
Plain text
|
VIDEO
Video
|
| Modifier and Type | Method and Description |
|---|---|
MessageKey |
getMessageKey() |
java.util.List<java.lang.String> |
getMimeTypes() |
static FileMimeType |
of(java.lang.String mimeType)
Returns the
FileMimeType corresponding to the given mime type, or null if none match |
static FileMimeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileMimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileMimeType TEXT
public static final FileMimeType HTML
public static final FileMimeType PDF
public static final FileMimeType RTF
public static final FileMimeType MS_WORD
public static final FileMimeType MS_EXCEL
public static final FileMimeType MS_POWERPOINT
public static final FileMimeType OD_TEXT
public static final FileMimeType OD_SPREADSHEET
public static final FileMimeType OD_PRESENTATION
public static final FileMimeType IMAGE
public static final FileMimeType AUDIO
public static final FileMimeType VIDEO
public static final FileMimeType OTHER
public static FileMimeType[] values()
for (FileMimeType c : FileMimeType.values()) System.out.println(c);
public static FileMimeType 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 static FileMimeType of(java.lang.String mimeType)
FileMimeType corresponding to the given mime type, or null if none matchpublic MessageKey getMessageKey()
getMessageKey in interface HasMessageKeypublic java.util.List<java.lang.String> getMimeTypes()