com.nostra13.universalimageloader.core.download
Interface ImageDownloader

All Known Implementing Classes:
BaseImageDownloader, HttpClientImageDownloader, NetworkDeniedImageDownloader, SlowNetworkImageDownloader

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
          "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

SCHEME_HTTP

static final String SCHEME_HTTP
"http"

See Also:
Constant Field Values

SCHEME_HTTPS

static final String SCHEME_HTTPS
"https"

See Also:
Constant Field Values

SCHEME_FILE

static final String SCHEME_FILE
"file"

See Also:
Constant Field Values

SCHEME_CONTENT

static final String SCHEME_CONTENT
"content"

See Also:
Constant Field Values

SCHEME_ASSETS

static final String SCHEME_ASSETS
"assets"

See Also:
Constant Field Values

SCHEME_DRAWABLE

static final String SCHEME_DRAWABLE
"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.