public class URLLoadPropertiesTask extends URLRetriableTask
Task.TaskListener
Modifier and Type | Field and Description |
---|---|
protected java.util.Properties |
mContent |
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 |
---|
URLLoadPropertiesTask(java.lang.String srcURL) |
URLLoadPropertiesTask(java.lang.String srcURL,
int retryMax) |
URLLoadPropertiesTask(java.lang.String srcURL,
int retryMax,
int retryDelay) |
Modifier and Type | Method and Description |
---|---|
java.util.Properties |
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 URLLoadPropertiesTask(java.lang.String srcURL)
srcURL
- public URLLoadPropertiesTask(java.lang.String srcURL, int retryMax)
srcURL
- retryMax
- public URLLoadPropertiesTask(java.lang.String srcURL, 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 java.util.Properties getContent()