public abstract class DataAsyncHttpResponseHandler extends AsyncHttpResponseHandler
| 限定符和类型 | 字段和说明 |
|---|---|
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| 构造器和说明 |
|---|
DataAsyncHttpResponseHandler()
Creates a new AsyncHttpResponseHandler
|
| 限定符和类型 | 方法和说明 |
|---|---|
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, 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, setUsePoolThread, setUseSynchronousModeprotected static final int PROGRESS_DATA_MESSAGE
public DataAsyncHttpResponseHandler()
public void onProgressData(byte[] responseBody)
responseBody - response body received so farpublic final void sendProgressDataMessage(byte[] responseBytes)
protected void handleMessage(android.os.Message message)
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 == nullArrays