LOGGER.debug(format("Multipart sending file %1$s as S3 object %2$s in "
+ "bucket %3$s", sourceFile.getName(), key, bucketName));
}
TransferManager tm = new TransferManager(S3Utils.acquireClient(clientOptions));
Upload upload = tm.upload(bucketName, key, sourceFile);
upload.waitForCompletion();
}
// multi-part upload object
public static void mputObject(final ClientOptions clientOptions,
final InputStream sourceStream, final String bucketName, final String key) throws InterruptedException {