public class ByteArrayProcessor extends Processor<byte[]>
| Constructor and Description |
|---|
ByteArrayProcessor() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
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.
|
getConnectionInfo, onPublishedDownloadProgress, onPublishedUploadProgress, onPublishedUploadProgress, onSendpublic void onPublishedDownloadProgress(byte[] chunk,
int chunkLength,
long totalProcessed,
long totalLength)
ProcessoronPublishedDownloadProgress in class Processor<byte[]>chunk - 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 byte[] getContent()
getContent in class Processor<byte[]>