public enum MimeType extends Enum<MimeType>
Enum Constant and Description |
---|
DOC_PDF |
IMAGE_GIF |
IMAGE_JPEG |
IMAGE_PNG |
TEXT_PLAIN |
TEXT_RICH |
TEXT_XML |
Modifier and Type | Method and Description |
---|---|
static MimeType |
fromValue(String value) |
String |
getMimeType() |
static MimeType |
valueOf(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 IMAGE_JPEG
public static final MimeType IMAGE_PNG
public static final MimeType IMAGE_GIF
public static final MimeType DOC_PDF
public static final MimeType TEXT_RICH
public static final MimeType TEXT_XML
public static final MimeType TEXT_PLAIN
public static MimeType[] values()
for (MimeType c : MimeType.values()) System.out.println(c);
public static MimeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getMimeType()
public static MimeType fromValue(String value)
value
- String
value representing the mime type e.g. image/jpeg. Same as returned by getMimeType()
MimeType
constant representing the value
with the lowest ordinal.Copyright © 1982–2022 Adobe Systems Inc.. All rights reserved.