|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImageDownloader
Provides retrieving of InputStream
of image by URI.
Implementations have to be thread-safe.
Field Summary | |
---|---|
static String |
SCHEME_ASSETS
"assets" |
static String |
SCHEME_CONTENT
"content" |
static String |
SCHEME_DRAWABLE
"drawable" |
static String |
SCHEME_FILE
"file" |
static String |
SCHEME_HTTP
"http" |
static String |
SCHEME_HTTPS
"https" |
Method Summary | |
---|---|
InputStream |
getStream(URI imageUri,
Object extra)
Retrieves InputStream of image by URI. |
Field Detail |
---|
static final String SCHEME_HTTP
static final String SCHEME_HTTPS
static final String SCHEME_FILE
static final String SCHEME_CONTENT
static final String SCHEME_ASSETS
static final String SCHEME_DRAWABLE
Method Detail |
---|
InputStream getStream(URI imageUri, Object extra) throws IOException
InputStream
of image by URI.
imageUri
- Image URIextra
- Auxiliary object which was passed to DisplayImageOptions.extraForDownloader(Object)
; can be null
InputStream
of image
IOException
- if some I/O error occurs during getting image stream
UnsupportedOperationException
- if image URI has unsupported scheme(protocol)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |