com.nostra13.universalimageloader.core.download
Interface ImageDownloader
- All Known Implementing Classes:
- BaseImageDownloader, HttpClientImageDownloader, NetworkDeniedImageDownloader
public interface ImageDownloader
Provides retrieving of InputStream
of image by URI.
Implementations have to be thread-safe.
- Since:
- 1.4.0
- Author:
- Sergey Tarasevich (nostra13[at]gmail[dot]com)
SCHEME_HTTP
static final String SCHEME_HTTP
- See Also:
- Constant Field Values
SCHEME_HTTPS
static final String SCHEME_HTTPS
- See Also:
- Constant Field Values
SCHEME_FILE
static final String SCHEME_FILE
- See Also:
- Constant Field Values
SCHEME_CONTENT
static final String SCHEME_CONTENT
- See Also:
- Constant Field Values
SCHEME_ASSETS
static final String SCHEME_ASSETS
- See Also:
- Constant Field Values
SCHEME_DRAWABLE
static final String SCHEME_DRAWABLE
- See Also:
- Constant Field Values
getStream
InputStream getStream(URI imageUri,
Object extra)
throws IOException
- Retrieves
InputStream
of image by URI.
- Parameters:
imageUri
- Image URIextra
- Auxiliary object which was passed to DisplayImageOptions.extraForDownloader(Object)
; can be null
- Returns:
InputStream
of image
- Throws:
IOException
- if some I/O error occurs during getting image stream
UnsupportedOperationException
- if image URI has unsupported scheme(protocol)
Copyright © 2011-2013. All Rights Reserved.