com.nostra13.universalimageloader.core.download
Class HttpClientImageDownloader
java.lang.Object
com.nostra13.universalimageloader.core.download.BaseImageDownloader
com.nostra13.universalimageloader.core.download.HttpClientImageDownloader
- All Implemented Interfaces:
- ImageDownloader
public class HttpClientImageDownloader
- extends BaseImageDownloader
Implementation of ImageDownloader which uses HttpClient
for image stream retrieving.
- Since:
- 1.4.1
- Author:
- Sergey Tarasevich (nostra13[at]gmail[dot]com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpClientImageDownloader
public HttpClientImageDownloader(android.content.Context context,
org.apache.http.client.HttpClient httpClient)
getStreamFromNetwork
protected InputStream getStreamFromNetwork(URI imageUri,
Object extra)
throws IOException
- Description copied from class:
BaseImageDownloader
- Retrieves
InputStream
of image by URI (image is located in the network).
- Overrides:
getStreamFromNetwork
in class BaseImageDownloader
- 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 network request or if no InputStream could be created for
URI.
Copyright © 2011-2013. All Rights Reserved.