public enum ContentType extends Enum<ContentType>
| 枚举常量和说明 |
|---|
HTML |
JAVASCRIPT |
JSON |
TEXT |
XML |
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 - 如果该枚举类型没有带有指定名称的常量,
则抛出 IllegalArgumentExceptionNullPointerException - 如果参数为空值, 则抛出 NullPointerExceptionpublic String value()
public String toString()
toString 在类中 Enum<ContentType>Copyright © 2015. All Rights Reserved.