|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nostra13.universalimageloader.core.download.ImageDownloader
public abstract class ImageDownloader
Provides retrieving of InputStream
of image by URI.
Field Summary | |
---|---|
protected static int |
BUFFER_SIZE
|
protected static java.lang.String |
PROTOCOL_FILE
|
protected static java.lang.String |
PROTOCOL_FTP
|
protected static java.lang.String |
PROTOCOL_HTTP
|
protected static java.lang.String |
PROTOCOL_HTTPS
|
Constructor Summary | |
---|---|
ImageDownloader()
|
Method Summary | |
---|---|
java.io.InputStream |
getStream(java.net.URI imageUri)
Retrieves InputStream of image by URI. |
protected java.io.InputStream |
getStreamFromFile(java.net.URI imageUri)
Retrieves InputStream of image by URI (image is located on the local file system or SD card) |
protected abstract java.io.InputStream |
getStreamFromNetwork(java.net.URI imageUri)
Retrieves InputStream of image by URI (image is located in the network) |
protected java.io.InputStream |
getStreamFromOtherSource(java.net.URI imageUri)
Retrieves InputStream of image by URI from other source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String PROTOCOL_FILE
protected static final java.lang.String PROTOCOL_HTTP
protected static final java.lang.String PROTOCOL_HTTPS
protected static final java.lang.String PROTOCOL_FTP
protected static final int BUFFER_SIZE
Constructor Detail |
---|
public ImageDownloader()
Method Detail |
---|
public java.io.InputStream getStream(java.net.URI imageUri) throws java.io.IOException
InputStream
of image by URI. Image can be located as in the network and on local file system.
java.io.IOException
protected java.io.InputStream getStreamFromOtherSource(java.net.URI imageUri) throws java.io.IOException
InputStream
of image by URI from other source. Should be overriden by successors to implement
image downloading from special sources (not local file and not web URL).
java.io.IOException
protected abstract java.io.InputStream getStreamFromNetwork(java.net.URI imageUri) throws java.io.IOException
InputStream
of image by URI (image is located in the network)
java.io.IOException
protected java.io.InputStream getStreamFromFile(java.net.URI imageUri) throws java.io.IOException
InputStream
of image by URI (image is located on the local file system or SD card)
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |