public static enum ImageDownloader.Scheme extends Enum<ImageDownloader.Scheme>
限定符和类型 | 方法和说明 |
---|---|
String |
crop(String uri)
Removed scheme part ("scheme://") from incoming URI
|
static ImageDownloader.Scheme |
ofUri(String uri)
Defines scheme of incoming URI
|
static ImageDownloader.Scheme |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ImageDownloader.Scheme[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
String |
wrap(String path)
Appends scheme to incoming path
|
public static final ImageDownloader.Scheme HTTP
public static final ImageDownloader.Scheme HTTPS
public static final ImageDownloader.Scheme FILE
public static final ImageDownloader.Scheme CONTENT
public static final ImageDownloader.Scheme ASSETS
public static final ImageDownloader.Scheme DRAWABLE
public static final ImageDownloader.Scheme UNKNOWN
public static ImageDownloader.Scheme[] values()
for (ImageDownloader.Scheme c : ImageDownloader.Scheme.values()) System.out.println(c);
public static ImageDownloader.Scheme valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public static ImageDownloader.Scheme ofUri(String uri)
uri
- URI for scheme detection