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)

Field Summary
static String SCHEME_ASSETS
           
static String SCHEME_CONTENT
           
static String SCHEME_DRAWABLE
           
static String SCHEME_FILE
           
static String SCHEME_HTTP
           
static String SCHEME_HTTPS
           
 
Method Summary
 InputStream getStream(URI imageUri, Object extra)
          Retrieves InputStream of image by URI.
 

Field Detail

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
Method Detail

getStream

InputStream getStream(URI imageUri,
                      Object extra)
                      throws IOException
Retrieves InputStream of image by URI.

Parameters:
imageUri - Image URI
extra - 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.