public class S3Uploader extends BaseS3
BaseS3}
ACCESS_KEY, ACCESS_SECRET, accessKey, AWS_ACCESS_KEY, AWS_SECRET_KEY, creds, secretKey, serialVersionUID
Constructor and Description |
---|
S3Uploader() |
Modifier and Type | Method and Description |
---|---|
void |
multiPartUpload(java.io.File file,
java.lang.String bucketName)
Multi part upload for big files
|
void |
upload(java.io.File file,
java.lang.String bucketName)
Upload the file to the bucket.
|
void |
upload(java.io.File file,
java.lang.String name,
java.lang.String bucketName) |
com.amazonaws.services.s3.transfer.MultipleFileUpload |
uploadFileList(java.lang.String bucketName,
java.io.File folderPath,
java.util.List<java.io.File> fileList,
java.lang.String keyPrefix) |
com.amazonaws.services.s3.transfer.MultipleFileUpload |
uploadFolder(java.lang.String bucketName,
java.lang.String keyPrefix,
java.io.File folderPath,
boolean includeSubDir) |
public void multiPartUpload(java.io.File file, java.lang.String bucketName)
file
- the file to uploadbucketName
- the bucket name to uploadpublic void upload(java.io.File file, java.lang.String bucketName)
file
- the file to uploadbucketName
- the name of the bucketpublic void upload(java.io.File file, java.lang.String name, java.lang.String bucketName)
public com.amazonaws.services.s3.transfer.MultipleFileUpload uploadFolder(java.lang.String bucketName, java.lang.String keyPrefix, java.io.File folderPath, boolean includeSubDir)
public com.amazonaws.services.s3.transfer.MultipleFileUpload uploadFileList(java.lang.String bucketName, java.io.File folderPath, java.util.List<java.io.File> fileList, java.lang.String keyPrefix)