public enum ContentTypes extends Enum<ContentTypes>
| 枚举常量和说明 |
|---|
application_json
json
|
application_octet_stream
二进制流
|
image_jpeg
jpg格式
|
text_html
html
|
text_plain
普通文本
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getValue() |
static ContentTypes |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ContentTypes[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ContentTypes application_octet_stream
public static final ContentTypes image_jpeg
public static final ContentTypes text_plain
public static final ContentTypes text_html
public static final ContentTypes application_json
public static ContentTypes[] values()
for (ContentTypes c : ContentTypes.values()) System.out.println(c);
public static ContentTypes valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getValue()
Copyright © 2017. All rights reserved.