/** * A convenience method to download multiple objects from S3 to pre-existing output streams, which * is particularly useful for downloading objects to files. * * @param bucket * the bucket containing the objects * @param downloadPackages * an array of download package objects that manage the output of data for an S3Object. * * @throws S3ServiceException */ public void downloadObjects(final S3Bucket bucket, final DownloadPackage[] downloadPackages) throws S3ServiceException { S3ServiceEventAdaptor adaptor = new S3ServiceEventAdaptor(); (new S3ServiceMulti(s3Service, adaptor)).downloadObjects(bucket, downloadPackages); throwError(adaptor); }
/** * A convenience method to download multiple objects from S3 to pre-existing output streams, which * is particularly useful for downloading objects to files. * * @param bucket * the bucket containing the objects * @param downloadPackages * an array of download package objects that manage the output of data for an S3Object. * * @throws S3ServiceException */ public void downloadObjects(final S3Bucket bucket, final DownloadPackage[] downloadPackages) throws S3ServiceException { S3ServiceEventAdaptor adaptor = new S3ServiceEventAdaptor(); (new S3ServiceMulti(s3Service, adaptor)).downloadObjects(bucket, downloadPackages); throwError(adaptor); }
/** * Deletes multiple versions. * * @param versionIds * the identifiers of the object versions that will be deleted. * @param multiFactorSerialNumber * the serial number for a multi-factor authentication device. * @param multiFactorAuthCode * a multi-factor authentication code generated by a device. * @param bucketName * the name of the versioned bucket containing the object to be deleted. * @param objectKey * the key representing the object in S3. * * @throws S3ServiceException */ public void deleteVersionsOfObjectWithMFA(final String[] versionIds, String multiFactorSerialNumber, String multiFactorAuthCode, String bucketName, String objectKey) throws S3ServiceException { S3ServiceEventAdaptor adaptor = new S3ServiceEventAdaptor(); (new S3ServiceMulti(s3Service, adaptor)).deleteVersionsOfObjectWithMFA( versionIds, multiFactorSerialNumber, multiFactorAuthCode, bucketName, objectKey); throwError(adaptor); }
/** * Deletes multiple versions. * * @param versionIds * the identifiers of the object versions that will be deleted. * @param multiFactorSerialNumber * the serial number for a multi-factor authentication device. * @param multiFactorAuthCode * a multi-factor authentication code generated by a device. * @param bucketName * the name of the versioned bucket containing the object to be deleted. * @param objectKey * the key representing the object in S3. * * @throws S3ServiceException */ public void deleteVersionsOfObjectWithMFA(final String[] versionIds, String multiFactorSerialNumber, String multiFactorAuthCode, String bucketName, String objectKey) throws S3ServiceException { S3ServiceEventAdaptor adaptor = new S3ServiceEventAdaptor(); (new S3ServiceMulti(s3Service, adaptor)).deleteVersionsOfObjectWithMFA( versionIds, multiFactorSerialNumber, multiFactorAuthCode, bucketName, objectKey); throwError(adaptor); }