public abstract class DataAsyncHttpResponseHandler extends AsyncHttpResponseHandler
| Modifier and Type | Field and Description |
|---|---|
protected static int |
PROGRESS_DATA_MESSAGE |
BUFFER_SIZE, CANCEL_MESSAGE, DEFAULT_CHARSET, FAILURE_MESSAGE, FINISH_MESSAGE, PROGRESS_MESSAGE, RETRY_MESSAGE, START_MESSAGE, SUCCESS_MESSAGE, UTF8_BOM| Constructor and Description |
|---|
DataAsyncHttpResponseHandler()
Creates a new AsyncHttpResponseHandler
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
copyOfRange(byte[] original,
int start,
int end)
Copies elements from
original into a new array, from indexes start (inclusive) to end
(exclusive). |
protected void |
handleMessage(android.os.Message message) |
void |
onProgressData(byte[] responseBody)
Fired when the request progress, override to handle in your own code
|
void |
sendProgressDataMessage(byte[] responseBytes) |
getCharset, getRequestHeaders, getRequestURI, getTag, getUsePoolThread, getUseSynchronousMode, obtainMessage, onCancel, onFailure, onFinish, onPostProcessResponse, onPreProcessResponse, onProgress, onRetry, onStart, onSuccess, onUserException, postRunnable, sendCancelMessage, sendFailureMessage, sendFinishMessage, sendMessage, sendProgressMessage, sendResponseMessage, sendRetryMessage, sendStartMessage, sendSuccessMessage, setCharset, setRequestHeaders, setRequestURI, setTag, setUsePoolThread, setUseSynchronousModeprotected static final int PROGRESS_DATA_MESSAGE
public DataAsyncHttpResponseHandler()
public static byte[] copyOfRange(byte[] original,
int start,
int end)
throws java.lang.ArrayIndexOutOfBoundsException,
java.lang.IllegalArgumentException,
java.lang.NullPointerException
original into a new array, from indexes start (inclusive) to end
(exclusive). The original order of elements is preserved. If end is greater than
original.length, the result is padded with the value (byte) 0.original - the original arraystart - the start index, inclusiveend - the end index, exclusivejava.lang.ArrayIndexOutOfBoundsException - if start < 0 || start > original.lengthjava.lang.IllegalArgumentException - if start > endjava.lang.NullPointerException - if original == nullArrayspublic void onProgressData(byte[] responseBody)
responseBody - response body received so farpublic final void sendProgressDataMessage(byte[] responseBytes)
protected void handleMessage(android.os.Message message)
handleMessage in class AsyncHttpResponseHandler