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