public enum ContentType extends Enum<ContentType>
| 枚举常量和说明 |
|---|
HTML |
JAVASCRIPT |
JSON |
TEXT |
XML |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
toString() |
String |
value() |
static ContentType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ContentType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ContentType TEXT
public static final ContentType HTML
public static final ContentType XML
public static final ContentType JSON
public static final ContentType JAVASCRIPT
public static ContentType[] values()
for (ContentType c : ContentType.values()) System.out.println(c);
public static ContentType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String value()
public String toString()
toString 在类中 Enum<ContentType>Copyright © 2015. All rights reserved.