public enum MediaMimeType extends Enum<MediaMimeType>
Java class for MediaMimeType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="MediaMimeType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="UNKNOWN"/>
<enumeration value="IMAGE_JPEG"/>
<enumeration value="IMAGE_GIF"/>
<enumeration value="IMAGE_PNG"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
IMAGE_GIF
MIME type of image/gif.
|
IMAGE_JPEG
MIME type of image/jpeg.
|
IMAGE_PNG
MIME type of image/png.
|
UNKNOWN
Used for return value only.
|
| Modifier and Type | Method and Description |
|---|---|
static MediaMimeType |
fromValue(String v) |
String |
value() |
static MediaMimeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaMimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaMimeType UNKNOWN
public static final MediaMimeType IMAGE_JPEG
public static final MediaMimeType IMAGE_GIF
public static final MediaMimeType IMAGE_PNG
public static MediaMimeType[] values()
for (MediaMimeType c : MediaMimeType.values()) System.out.println(c);
public static MediaMimeType 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 value()
public static MediaMimeType fromValue(String v)
Copyright © 2023. All rights reserved.