public class ResponseFileConverter<T> extends ResponseBodyConverter<T> implements ProgressBody
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
isQuic |
protected QCloudProgressListener |
progressListener |
构造器和说明 |
---|
ResponseFileConverter() |
ResponseFileConverter(java.lang.String filePath,
long offset) |
ResponseFileConverter(android.net.Uri contentUri,
android.content.ContentResolver contentResolver,
long offset) |
限定符和类型 | 方法和说明 |
---|---|
T |
convert(HttpResponse<T> response)
转换方法
|
void |
enableQuic(boolean isQuic) |
long |
getBytesTransferred() |
java.io.OutputStream |
getOutputStream() |
QCloudProgressListener |
getProgressListener() |
boolean |
isFilePathConverter()
是否是文件路径转换器
|
void |
setProgressListener(QCloudProgressListener progressListener) |
bytes, file, file, inputStream, string
protected boolean isQuic
protected QCloudProgressListener progressListener
public ResponseFileConverter(java.lang.String filePath, long offset)
public ResponseFileConverter(android.net.Uri contentUri, android.content.ContentResolver contentResolver, long offset)
public ResponseFileConverter()
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 java.io.OutputStream getOutputStream() throws QCloudClientException
public long getBytesTransferred()
getBytesTransferred
在接口中 ProgressBody
public boolean isFilePathConverter()