library/src/main/java/com/kdgregory/aws/utils/s3/MultipartUpload.java
/**
     *  Begins the upload, with provided object metadata.
     */
Begins the upload, with provided object metadata.
Begins the upload with provided object metadata .
public void begin(String bucketName, String keyName, ObjectMetadata metadata)
    {
        bucket = bucketName;
        key = keyName;
        logger.debug("initiating multi-part upload for s3://" + bucket + "/" + key);
        InitiateMultipartUploadRequest request = new InitiateMultipartUploadRequest(bucket, key, metadata);
        InitiateMultipartUploadResult response = client.initiateMultipartUpload(request);
        uploadId = response.getUploadId();
        partNumber = 0; 
        futures = new ArrayList<>();
        logger.debug("initiated multi-part upload for s3://" + bucket + "/" + key + "; upload ID is " + uploadId);
    }
public void begin ( String bucketName , String keyName , ObjectMetadata metadata ) { bucket = bucketName ; key = keyName ; logger . debug ( "initiating multi-part upload for s3://" + bucket + "/" + key ) ; InitiateMultipartUploadRequest request = new InitiateMultipartUploadRequest ( bucket , key , metadata ) ; InitiateMultipartUploadResult response = client . initiateMultipartUpload ( request ) ; uploadId = response . getUploadId ( ) ; partNumber = 0 ; futures = new ArrayList < > ( ) ; logger . debug ( "initiated multi-part upload for s3://" + bucket + "/" + key + "; upload ID is " + uploadId ) ; }
Begins the upload, with provided object metadata.
Begins the upload with provided object metadata .
// note: part numbers start at 1, must pre-increment for each part