public class ResumableDownloadRequest extends OSSRequest
OSSRequest.CRC64Config
构造器和说明 |
---|
ResumableDownloadRequest(java.lang.String bucketName,
java.lang.String objectKey,
java.lang.String downloadToFilePath)
Constructor
|
ResumableDownloadRequest(java.lang.String bucketName,
java.lang.String objectKey,
java.lang.String downloadToFilePath,
java.lang.String checkPointFilePath)
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getBucketName() |
java.lang.String |
getCheckPointFilePath() |
java.lang.String |
getDownloadToFilePath() |
java.lang.Boolean |
getEnableCheckPoint() |
java.lang.String |
getObjectKey() |
long |
getPartSize() |
OSSProgressCallback |
getProgressListener() |
Range |
getRange() |
java.util.Map<java.lang.String,java.lang.String> |
getRequestHeader() |
java.lang.String |
getTempFilePath() |
void |
setBucketName(java.lang.String bucketName)
Sets the OSS bucket name
|
void |
setCheckPointFilePath(java.lang.String checkPointFilePath)
Sets the checkpoint files' directory (the directory must exist and is absolute directory path)
|
void |
setDownloadToFilePath(java.lang.String downloadToFilePath)
Sets the local path of the file to download
|
void |
setEnableCheckPoint(java.lang.Boolean enableCheckPoint) |
void |
setObjectKey(java.lang.String objectKey)
Sets the OSS object key
|
void |
setPartSize(long partSize)
Sets the part size, by default it's 256KB and the minimal value is 100KB
|
void |
setProgressListener(OSSProgressCallback progressListener)
Sets the upload progress callback
|
void |
setRange(Range range)
Sets the range to download
|
void |
setRequestHeader(java.util.Map<java.lang.String,java.lang.String> requestHeader)
Sets the request headers
|
getCRC64, isAuthorizationRequired, setCRC64, setIsAuthorizationRequired
public ResumableDownloadRequest(java.lang.String bucketName, java.lang.String objectKey, java.lang.String downloadToFilePath)
bucketName
- The target object's bucket nameobjectKey
- The target object's keydownloadToFilePath
- The local path of the file to downloadpublic ResumableDownloadRequest(java.lang.String bucketName, java.lang.String objectKey, java.lang.String downloadToFilePath, java.lang.String checkPointFilePath)
bucketName
- The target object's bucket nameobjectKey
- The target object's keydownloadToFilePath
- The local path of the file to downloadcheckPointFilePath
- The checkpoint files' directorypublic java.lang.String getBucketName()
public void setBucketName(java.lang.String bucketName)
bucketName
- public java.lang.String getObjectKey()
public void setObjectKey(java.lang.String objectKey)
objectKey
- public Range getRange()
public void setRange(Range range)
range
- The range to download (starting from 0 to the length -1)public OSSProgressCallback getProgressListener()
public void setProgressListener(OSSProgressCallback progressListener)
public java.lang.String getDownloadToFilePath()
public void setDownloadToFilePath(java.lang.String downloadToFilePath)
downloadToFilePath
- the local path of the file to uploadpublic java.lang.Boolean getEnableCheckPoint()
public void setEnableCheckPoint(java.lang.Boolean enableCheckPoint)
public java.lang.String getCheckPointFilePath()
public void setCheckPointFilePath(java.lang.String checkPointFilePath)
checkPointFilePath
- the checkpoint files' directorypublic long getPartSize()
public void setPartSize(long partSize)
partSize
- size in bytepublic java.lang.String getTempFilePath()
public java.util.Map<java.lang.String,java.lang.String> getRequestHeader()
public void setRequestHeader(java.util.Map<java.lang.String,java.lang.String> requestHeader)
requestHeader
-