public class ResponseInputStreamConverter<T> extends ResponseBodyConverter<T> implements ProgressBody
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
isQuic |
protected QCloudProgressListener |
progressListener |
构造器和说明 |
---|
ResponseInputStreamConverter() |
限定符和类型 | 方法和说明 |
---|---|
T |
convert(HttpResponse<T> response)
转换方法
|
void |
enableQuic(boolean isQuic) |
long |
getBytesTotal() |
long |
getBytesTransferred() |
java.io.InputStream |
getInputStream() |
QCloudProgressListener |
getProgressListener() |
void |
setProgressListener(QCloudProgressListener progressListener) |
bytes, file, file, inputStream, string
protected boolean isQuic
protected QCloudProgressListener progressListener
public void setProgressListener(QCloudProgressListener progressListener)
setProgressListener
在接口中 ProgressBody
public void enableQuic(boolean isQuic)
public QCloudProgressListener getProgressListener()
public T convert(HttpResponse<T> response) throws QCloudClientException, QCloudServiceException
ResponseBodyConverter
convert
在类中 ResponseBodyConverter<T>
response
- 需要解析的ResponseBodyQCloudClientException
- 客户端异常QCloudServiceException
- 服务端异常public long getBytesTransferred()
getBytesTransferred
在接口中 ProgressBody
public java.io.InputStream getInputStream()
public long getBytesTotal()