public abstract class JSONObjectResponseHandler extends AsyncHttpResponseHandler
JsonResponseHandler| Constructor and Description |
|---|
JSONObjectResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateContent()
Generate the JSONObject from the buffer and remove it to allow the GC to clean up properly
|
org.json.JSONObject |
getContent()
Gets the content generated from the
response.
|
void |
onPublishedDownloadProgress(byte[] chunk,
int chunkLength,
long totalProcessed,
long totalLength)
Called when a chunk has been downloaded from the request.
|
beforeCallback, beforeFinish, getConnectionInfo, onBeginPublishedDownloadProgress, onFailure, onFinish, onFinish, onPublishedDownloadProgress, onPublishedDownloadProgressUI, onPublishedUploadProgress, onPublishedUploadProgress, onPublishedUploadProgressUI, onSend, onSuccesspublic void onPublishedDownloadProgress(byte[] chunk,
int chunkLength,
long totalProcessed,
long totalLength)
AsyncHttpResponseHandleronPublishedDownloadProgress in class AsyncHttpResponseHandlerchunk - The chunk of data. This will be the null after the total amount has been downloaded.chunkLength - The length of the chunktotalProcessed - The total amount of data processed from the request.totalLength - The total size of the request. note: This can be
-1 during download.public void generateContent()
generateContent in class AsyncHttpResponseHandlerpublic org.json.JSONObject getContent()
AsyncHttpResponseHandlergetContent in class AsyncHttpResponseHandler