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)

Nested Class Summary
static class ImageDownloader.Scheme
          Represents supported schemes(protocols) of URI.
 
Method Summary
 java.io.InputStream getStream(java.lang.String imageUri, java.lang.Object extra)
          Retrieves InputStream of image by URI.
 

Method Detail

getStream

java.io.InputStream getStream(java.lang.String imageUri,
                              java.lang.Object extra)
                              throws java.io.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:
java.io.IOException - if some I/O error occurs during getting image stream
java.lang.UnsupportedOperationException - if image URI has unsupported scheme(protocol)


Copyright © 2011-2013. All Rights Reserved.