/** * Marks this part as the last part being uploaded in a multipart upload, * and returns this updated request object so that additional method calls * can be chained together. * * @param isLastPart * Whether or not this is the last part being uploaded in a * multipart upload. * * @return This updated request object so that additional method calls can * be chained together. */ public UploadPartRequest withLastPart(boolean isLastPart) { setLastPart(isLastPart); return this; }
.withFile(mFile) .withPartSize(mFile.length()); uploadRequest.setLastPart(true); execUpload(uploadRequest);
/** * Marks this part as the last part being uploaded in a multipart upload, * and returns this updated request object so that additional method calls * can be chained together. * * @param isLastPart Whether or not this is the last part being uploaded in * a multipart upload. * @return This updated request object so that additional method calls can be * chained together. */ public UploadPartRequest withLastPart(boolean isLastPart) { setLastPart(isLastPart); return this; }
remainingBytes -= partSize; req.setLastPart(isLastPart);
/** * Marks this part as the last part being uploaded in a multipart upload, * and returns this updated request object so that additional method calls * can be chained together. * * @param isLastPart Whether or not this is the last part being uploaded in * a multipart upload. * @return This updated request object so that additional method calls can be * chained together. */ public UploadPartRequest withLastPart(boolean isLastPart) { setLastPart(isLastPart); return this; }
/** * Marks this part as the last part being uploaded in a multipart upload, * and returns this updated request object so that additional method calls * can be chained together. * * @param isLastPart * Whether or not this is the last part being uploaded in a * multipart upload. * * @return This updated request object so that additional method calls can * be chained together. */ public UploadPartRequest withLastPart(boolean isLastPart) { setLastPart(isLastPart); return this; }
remainingBytes -= partSize; request.setLastPart(isLastPart); request.setGeneralProgressListener(putObjectRequest.getGeneralProgressListener());
localFile, offset); part.setLastPart(partNumber == numParts); UploadPartResult partResult = writeOperations.uploadPart(part); offset += uploadPartSize;
remainingBytes -= partSize; request.setLastPart(isLastPart); request.setGeneralProgressListener(putObjectRequest.getGeneralProgressListener());
remainingBytes -= partSize; req.setLastPart(isLastPart);