|
||||||||||
| 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 String |
PROTOCOL_FILE
|
protected static String |
PROTOCOL_FTP
|
protected static String |
PROTOCOL_HTTP
|
protected static String |
PROTOCOL_HTTPS
|
| Constructor Summary | |
|---|---|
ImageDownloader()
|
|
| Method Summary | |
|---|---|
InputStream |
getStream(URI imageUri)
Retrieves InputStream of image by URI. |
protected InputStream |
getStreamFromFile(URI imageUri)
Retrieves InputStream of image by URI (image is located on the local file system or SD card) |
protected abstract InputStream |
getStreamFromNetwork(URI imageUri)
Retrieves InputStream of image by URI (image is located in the network) |
protected InputStream |
getStreamFromOtherSource(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 String PROTOCOL_FILE
protected static final String PROTOCOL_HTTP
protected static final String PROTOCOL_HTTPS
protected static final String PROTOCOL_FTP
protected static final int BUFFER_SIZE
| Constructor Detail |
|---|
public ImageDownloader()
| Method Detail |
|---|
public InputStream getStream(URI imageUri)
throws IOException
InputStream of image by URI. Image can be located as in the network and on local file system.
IOException
protected InputStream getStreamFromOtherSource(URI imageUri)
throws 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).
IOException
protected abstract InputStream getStreamFromNetwork(URI imageUri)
throws IOException
InputStream of image by URI (image is located in the network)
IOException
protected InputStream getStreamFromFile(URI imageUri)
throws IOException
InputStream of image by URI (image is located on the local file system or SD card)
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||