/** * Retrieves multiple objects (including details and data). * The objects' data will be stored in temporary files, and can be retrieved using * {@link S3Object#getDataInputStream()}. * * @param bucket * the bucket containing the objects. * @param objectKeys * the key names of the objects to retrieve. * @return * the retrieved objects. * * @throws S3ServiceException */ public S3Object[] getObjects(final S3Bucket bucket, final String[] objectKeys) throws S3ServiceException { S3Object[] objects = new S3Object[objectKeys.length]; for (int i = 0; i < objectKeys.length; i++) { objects[i] = new S3Object(objectKeys[i]); } return getObjects(bucket, objects); }
/** * Retrieves multiple objects (including details and data). * The objects' data will be stored in temporary files, and can be retrieved using * {@link S3Object#getDataInputStream()}. * * @param bucket * the bucket containing the objects. * @param objectKeys * the key names of the objects to retrieve. * @return * the retrieved objects. * * @throws S3ServiceException */ public S3Object[] getObjects(final S3Bucket bucket, final String[] objectKeys) throws S3ServiceException { S3Object[] objects = new S3Object[objectKeys.length]; for (int i = 0; i < objectKeys.length; i++) { objects[i] = new S3Object(objectKeys[i]); } return getObjects(bucket, objects); }