public class URLLoadBitmapTask extends URLRetriableTask
Task.TaskListener| Modifier and Type | Field and Description |
|---|---|
protected Bitmap |
mContent |
protected BitmapFactory.Options |
mOptions |
CLASS_NAME, INTENT_COMPLETE, LOG_ENABLED, mSucceeded, TAGDEFAULT_BUFFER, DEFAULT_TIMEOUT, EXTRA_URL, mBuffer, mBufferSize, mContentLength, mGzipEnabled, mTotalBytesLoaded, mURLRETRY_UNLIMITED| Constructor and Description |
|---|
URLLoadBitmapTask(java.lang.String srcURL,
BitmapFactory.Options options) |
URLLoadBitmapTask(java.lang.String srcURL,
BitmapFactory.Options options,
int retryMax) |
URLLoadBitmapTask(java.lang.String srcURL,
BitmapFactory.Options options,
int retryMax,
int retryDelay) |
| Modifier and Type | Method and Description |
|---|---|
Bitmap |
getContent() |
protected void |
onProgress(byte[] data,
int count)
Internal callback when progressing
|
protected int |
readStream(java.io.InputStream stream) |
getCompleteIntent, isSucceeded, reset, retry, rungetURL, isGzipEnabled, openURL, openURL, postURL, setGzipEnabledpublic URLLoadBitmapTask(java.lang.String srcURL,
BitmapFactory.Options options)
srcURL - public URLLoadBitmapTask(java.lang.String srcURL,
BitmapFactory.Options options,
int retryMax)
srcURL - retryMax - public URLLoadBitmapTask(java.lang.String srcURL,
BitmapFactory.Options options,
int retryMax,
int retryDelay)
srcURL - retryMax - retryDelay - protected int readStream(java.io.InputStream stream)
throws java.lang.Exception
readStream in class URLTaskjava.lang.Exceptionprotected void onProgress(byte[] data,
int count)
throws java.lang.Exception
URLTaskonProgress in class URLTaskjava.lang.Exceptionpublic Bitmap getContent()