|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ImageDownloader.Scheme>
com.nostra13.universalimageloader.core.download.ImageDownloader.Scheme
public static enum ImageDownloader.Scheme
Represents supported schemes(protocols) of URI. Provides convenient methods for work with schemes and URIs.
Enum Constant Summary | |
---|---|
ASSETS
|
|
CONTENT
|
|
DRAWABLE
|
|
FILE
|
|
HTTP
|
|
HTTPS
|
|
UNKNOWN
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic static ImageDownloader.Scheme ofUri(String uri)
uri
- URI for scheme detection
public String wrap(String path)
public String crop(String uri)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |