public enum Protocol extends Enum<Protocol>
| Enum Constant and Description |
|---|
FILE_PATH
通过文件路径获取数据 Get data by file path
|
HTTP_HTTPS
通过HTTP或HTTPS协议获取数据 Get data via HTTP or HTTPS protocol
|
| Modifier and Type | Method and Description |
|---|---|
static Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protocol HTTP_HTTPS
public static final Protocol FILE_PATH
public static Protocol[] values()
for (Protocol c : Protocol.values()) System.out.println(c);
public static Protocol 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 nullCopyright © 2016–2021. All rights reserved.