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, TAG
DEFAULT_BUFFER, DEFAULT_TIMEOUT, EXTRA_URL, mBuffer, mBufferSize, mContentLength, mGzipEnabled, mTotalBytesLoaded, mURL
RETRY_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, run
getURL, isGzipEnabled, openURL, openURL, postURL, setGzipEnabled
public 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 URLTask
java.lang.Exception
protected void onProgress(byte[] data, int count) throws java.lang.Exception
URLTask
onProgress
in class URLTask
java.lang.Exception
public Bitmap getContent()