public static enum MediaType.Type extends java.lang.Enum<MediaType.Type>
| Enum Constant and Description |
|---|
APPLICATION |
AUDIO |
IMAGE |
TEXT |
VIDEO |
| Modifier and Type | Method and Description |
|---|---|
static MediaType.Type |
fromString(java.lang.String string)
Get the type from a given string
|
java.lang.String |
toString() |
static MediaType.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MediaType.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaType.Type APPLICATION
public static final MediaType.Type AUDIO
public static final MediaType.Type IMAGE
public static final MediaType.Type TEXT
public static final MediaType.Type VIDEO
public static MediaType.Type[] values()
for (MediaType.Type c : MediaType.Type.values()) System.out.println(c);
public static MediaType.Type 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 toString()
toString in class java.lang.Enum<MediaType.Type>public static MediaType.Type fromString(java.lang.String string)