public class UploadPartRequest extends GenericRequest
NOOP
构造器和说明 |
---|
UploadPartRequest() |
UploadPartRequest(String bucketName,
String key) |
UploadPartRequest(String bucketName,
String key,
String uploadId,
int partNumber,
InputStream inputStream,
long partSize) |
限定符和类型 | 方法和说明 |
---|---|
BoundedInputStream |
buildPartialStream() |
InputStream |
getInputStream()
Gets the data stream for the part.
|
String |
getMd5Digest()
Gets the part's MD5 value.
|
int |
getPartNumber()
Gets the part number.
|
long |
getPartSize()
Gets the part size.
|
int |
getTrafficLimit()
Gets traffic limit speed, its unit is bit/s
|
String |
getUploadId()
Gets the multipart upload Id.
|
boolean |
isUseChunkEncoding()
Gets the flag of using chunked transfer encoding.
|
void |
setInputStream(InputStream inputStream)
Sets the data stream for the part.
|
void |
setMd5Digest(String md5Digest)
Sets the part's MD5 value.
|
void |
setPartNumber(int partNumber)
Sets the part number.
|
void |
setPartSize(long partSize)
Sets the part size.
|
void |
setTrafficLimit(int trafficLimit)
Sets traffic limit speed, its unit is bit/s
|
void |
setUploadId(String uploadId)
Sets the multipart upload Id.
|
void |
setUseChunkEncoding(boolean useChunkEncoding)
Sets the flag of using chunked transfer encoding.
|
getBucketName, getKey, getRequestPayer, getVersionId, setBucketName, setKey, setRequestPayer, setVersionId, withBucketName, withKey, withRequestPayer, withVersionId
public UploadPartRequest()
public UploadPartRequest(String bucketName, String key, String uploadId, int partNumber, InputStream inputStream, long partSize)
public void setInputStream(InputStream inputStream)
inputStream
- The part's data stream.public InputStream getInputStream()
public String getUploadId()
public void setUploadId(String uploadId)
uploadId
- The multipart upload Id.public int getPartNumber()
public void setPartNumber(int partNumber)
partNumber
- Part number.public long getPartSize()
If the part size is -1, then it means the size is unknown. And it will use chunked transfer encoding to upload the part's data.
public void setPartSize(long partSize)
If the part size is -1, then it means the size is unknown. And it will use chunked transfer encoding to upload the part's data.
partSize
- Part size.public String getMd5Digest()
public void setMd5Digest(String md5Digest)
md5Digest
- Part's MD5 value.public boolean isUseChunkEncoding()
public void setUseChunkEncoding(boolean useChunkEncoding)
useChunkEncoding
- true:using chunked transfer encodingpublic BoundedInputStream buildPartialStream()
public void setTrafficLimit(int trafficLimit)
public int getTrafficLimit()
Copyright © 2019. All Rights Reserved.