Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2010-2015, Inc. or its affiliates. All Rights Reserved.
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
 * or in the "license" file accompanying this file. This file is distributed
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
An implementation of the Copy Interface that helps in retrieving the result of the copy operation.
public class CopyImpl extends AbstractTransfer implements Copy {
    public CopyImpl(String descriptionTransferProgress transferProgress,
            com.amazonaws.event.ProgressListenerChain progressListenerChain,
            TransferStateChangeListener stateChangeListener) {

Waits for this copy operation to complete and returns the result of the operation. Be prepared to handle errors when calling this method. Any errors that occurred during the asynchronous transfer will be re-thrown through this method.

The result of this transfer.
com.amazonaws.AmazonClientException If any errors were encountered in the client while making the request or handling the response.
com.amazonaws.AmazonServiceException If any errors occurred in Amazon S3 while processing the request.
java.lang.InterruptedException If this thread is interrupted while waiting for the upload to complete.
            AmazonServiceExceptionInterruptedException {
        try {
            CopyResult result = null;
            while (!.isDone() || result == null) {
                Future<?> f = .getFuture();
                result = (CopyResultf.get();
            return result;
        } catch (ExecutionException e) {
            return null;
New to GrepCode? Check out our FAQ X