public static enum ImageDownloader.Scheme extends Enum<ImageDownloader.Scheme>
Enum Constant and Description |
---|
ASSETS |
CONTENT |
DRAWABLE |
FILE |
HTTP |
HTTPS |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
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)
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.
|
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
- 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 nullpublic static ImageDownloader.Scheme ofUri(String uri)
uri
- URI for scheme detectionCopyright © 2011-2015. All Rights Reserved.