Enum Constant and Description |
---|
DOCX
Open XML word processing document (application/vnd.openxmlformats-officedocument.wordprocessingml.document).
|
GIF
GIF Image (image/gif).
|
GRAPHML
Graph Markup Language (application/graphml+xml).
|
HTML
HyperText Markup Language (text/html)
|
JIIX
Json Interactive Ink eXchange format (application/vnd.myscript.jiix).
|
JPEG
JPEG Image (image/jpeg).
|
LATEX
LaTeX (application/x-latex).
|
MATHML
Mathematical Markup Language (application/mathml+xml).
|
MUSICXML
Music Extensible Markup Language (application/vnd.recordare.musicxml+xml).
|
OFFICE_CLIPBOARD
Microsoft Office Clipboard format (Art::GVML ClipFormat).
|
PDF
Portable Document Format (application/pdf).
|
PNG
PNG Image (image/png).
|
PPTX
Open XML presentation (application/vnd.openxmlformats-officedocument.presentationml.presentation).
|
SVG
Scalable Vector Graphics (image/svg+xml).
|
TEXT
Plain text (text/plain).
|
Modifier and Type | Method and Description |
---|---|
static MimeType |
fromTypeName(java.lang.String typeName) |
java.lang.String |
getFileExtensions()
Returns a comma separated list of file extensions.
|
java.lang.String |
getName()
Returns a descriptive name in English.
|
java.lang.String |
getTypeName()
Returns the name of the media type, in the form "type/subtype".
|
boolean |
isImage() |
boolean |
isTextual() |
static MimeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MimeType TEXT
public static final MimeType HTML
public static final MimeType MATHML
public static final MimeType LATEX
public static final MimeType GRAPHML
public static final MimeType MUSICXML
public static final MimeType SVG
public static final MimeType JIIX
public static final MimeType JPEG
public static final MimeType PNG
public static final MimeType GIF
public static final MimeType PDF
public static final MimeType DOCX
public static final MimeType PPTX
public static final MimeType OFFICE_CLIPBOARD
public static MimeType[] values()
for (MimeType c : MimeType.values()) System.out.println(c);
public static MimeType 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 getName()
public java.lang.String getTypeName()
public java.lang.String getFileExtensions()
null
public static MimeType fromTypeName(java.lang.String typeName)
public boolean isTextual()
public boolean isImage()