com.nostra13.universalimageloader.core.download
Class URLConnectionImageDownloader

java.lang.Object
  extended by com.nostra13.universalimageloader.core.download.ImageDownloader
      extended by com.nostra13.universalimageloader.core.download.URLConnectionImageDownloader

public class URLConnectionImageDownloader
extends ImageDownloader

Default implementation of ImageDownloader. Uses URLConnection for image stream retrieving.

Author:
Sergey Tarasevich (nostra13[at]gmail[dot]com)

Field Summary
static int DEFAULT_HTTP_CONNECT_TIMEOUT
          5000
static int DEFAULT_HTTP_READ_TIMEOUT
          20000
 
Fields inherited from class com.nostra13.universalimageloader.core.download.ImageDownloader
BUFFER_SIZE, PROTOCOL_FILE, PROTOCOL_FTP, PROTOCOL_HTTP, PROTOCOL_HTTPS
 
Constructor Summary
URLConnectionImageDownloader()
           
URLConnectionImageDownloader(int connectTimeout, int readTimeout)
           
 
Method Summary
 java.io.InputStream getStreamFromNetwork(java.net.URI imageUri)
          Retrieves InputStream of image by URI (image is located in the network)
 
Methods inherited from class com.nostra13.universalimageloader.core.download.ImageDownloader
getStream, getStreamFromFile, getStreamFromOtherSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HTTP_CONNECT_TIMEOUT

public static final int DEFAULT_HTTP_CONNECT_TIMEOUT
5000

See Also:
Constant Field Values

DEFAULT_HTTP_READ_TIMEOUT

public static final int DEFAULT_HTTP_READ_TIMEOUT
20000

See Also:
Constant Field Values
Constructor Detail

URLConnectionImageDownloader

public URLConnectionImageDownloader()

URLConnectionImageDownloader

public URLConnectionImageDownloader(int connectTimeout,
                                    int readTimeout)
Method Detail

getStreamFromNetwork

public java.io.InputStream getStreamFromNetwork(java.net.URI imageUri)
                                         throws java.io.IOException
Description copied from class: ImageDownloader
Retrieves InputStream of image by URI (image is located in the network)

Specified by:
getStreamFromNetwork in class ImageDownloader
Throws:
java.io.IOException


Copyright © 2011-2013. All Rights Reserved.