public class UploadManager extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
UploadManager.CompleteMultipartUploadInput |
static class |
UploadManager.PutObjectInput |
| 构造器和说明 |
|---|
UploadManager(Bucket bucket,
Recorder recorder,
BodyProgressListener progressListener,
CancellationHandler cancellationHandler,
UploadManagerCallback callBack) |
UploadManager(Bucket bucket,
UploadManagerCallback callBack) |
| 限定符和类型 | 方法和说明 |
|---|---|
Bucket |
getBucket() |
UploadManagerCallback |
getCallBack() |
CancellationHandler |
getCancellationHandler() |
long |
getPartSize() |
BodyProgressListener |
getProgressListener() |
Recorder |
getRecorder() |
void |
put(File file)
Upload a file with a sync request.
|
void |
put(File file,
String objectKey,
String fileName,
String eTag)
Upload a file with a sync request.
|
void |
putFile(File file,
String objectKey,
String fileName,
long length)
Upload a file with a simple put object upload as a sync request.
|
void |
putFileMulti(File file,
String objectKey,
String fileName,
String eTag,
long length)
Upload a file with a multi upload as a sync request.
|
void |
setBucket(Bucket bucket) |
void |
setCallBack(UploadManagerCallback callBack) |
void |
setCancellationHandler(CancellationHandler cancellationHandler) |
void |
setPartSize(long partSize) |
void |
setProgressListener(BodyProgressListener progressListener) |
void |
setRecorder(Recorder recorder) |
public UploadManager(Bucket bucket, Recorder recorder, BodyProgressListener progressListener, CancellationHandler cancellationHandler, UploadManagerCallback callBack)
public UploadManager(Bucket bucket, UploadManagerCallback callBack)
public void put(File file) throws QSException
file - fileQSException - exceptionpublic void put(File file, String objectKey, String fileName, String eTag) throws QSException
file - fileobjectKey - key of the object in the bucketfileName - file name of response(content-disposition) when downloadedeTag - MD5 infoQSException - exceptionpublic void putFileMulti(File file, String objectKey, String fileName, String eTag, long length) throws QSException
file - fileobjectKey - key of the object in the bucketfileName - file name of response(content-disposition) when downloadedeTag - MD5 infolength - length of the file.QSException - exceptionpublic void putFile(File file, String objectKey, String fileName, long length) throws QSException
partSize, there will call this method.file - fileobjectKey - key of the object in the bucketfileName - file name of response(content-disposition) when downloadedlength - length of the fileQSException - exceptionpublic long getPartSize()
public void setPartSize(long partSize)
public Recorder getRecorder()
public void setRecorder(Recorder recorder)
public Bucket getBucket()
public void setBucket(Bucket bucket)
public BodyProgressListener getProgressListener()
public void setProgressListener(BodyProgressListener progressListener)
public CancellationHandler getCancellationHandler()
public void setCancellationHandler(CancellationHandler cancellationHandler)
public UploadManagerCallback getCallBack()
public void setCallBack(UploadManagerCallback callBack)
Copyright © 2018. All rights reserved.