public abstract class CacheResponseHandler extends AsyncHttpResponseHandler
| Constructor and Description |
|---|
CacheResponseHandler(java.lang.String filePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateContent()
Override this method to efficiently generate your content from any buffers you have have
used.
|
java.io.File |
getContent()
Processes the response from the stream.
|
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()
AsyncHttpResponseHandlerAsyncHttpResponseHandler.onBeginPublishedDownloadProgress(java.io.InputStream, net.callumtaylor.asynchttp.AsyncHttpClient.ClientExecutorTask, long) has finishedgenerateContent in class AsyncHttpResponseHandlerpublic java.io.File getContent()
getContent in class AsyncHttpResponseHandler