com.nostra13.universalimageloader.core.download
Interface ImageDownloader

All Known Implementing Classes:
BaseImageDownloader

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
 InputStream getStream(String imageUri, Object extra)
          Retrieves InputStream of image by URI.
 

Method Detail

getStream

InputStream getStream(String 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-2014. All Rights Reserved.