class Synchronize.LazyPreparedUploadObject
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
aclString |
private EncryptionUtil |
encryptionUtil |
private java.io.File |
file |
private byte[] |
md5HashOfFile |
private java.lang.String |
targetKey |
| Constructor and Description |
|---|
LazyPreparedUploadObject(java.lang.String targetKey,
java.io.File file,
byte[] md5HashOfFile,
java.lang.String aclString,
EncryptionUtil encryptionUtil) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getFile() |
StorageObject |
prepareUploadObject() |
private final java.lang.String targetKey
private final java.io.File file
private byte[] md5HashOfFile
private final java.lang.String aclString
private final EncryptionUtil encryptionUtil
public LazyPreparedUploadObject(java.lang.String targetKey,
java.io.File file,
byte[] md5HashOfFile,
java.lang.String aclString,
EncryptionUtil encryptionUtil)
targetKey - the key name for the objectfile - the file to uploadmd5HashOfFile - MD5 hash value of file to upload, may be null in which case this will be auto-generated.aclString - the ACL to apply to the uploaded objectencryptionUtil - the object to apply encryption, or null if no encryption is requiredpublic StorageObject prepareUploadObject() throws java.lang.Exception
java.lang.Exceptionpublic java.io.File getFile()