public static enum ImageDownloader.Scheme extends java.lang.Enum<ImageDownloader.Scheme>
Enum Constant and Description |
---|
ASSETS |
CONTENT |
DRAWABLE |
FILE |
HTTP |
HTTPS |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
crop(java.lang.String uri)
Removed scheme part ("scheme://") from incoming URI
|
static ImageDownloader.Scheme |
ofUri(java.lang.String uri)
Defines scheme of incoming URI
|
static ImageDownloader.Scheme |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageDownloader.Scheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
java.lang.String |
wrap(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ImageDownloader.Scheme ofUri(java.lang.String uri)
uri
- URI for scheme detectionpublic java.lang.String wrap(java.lang.String path)
public java.lang.String crop(java.lang.String uri)