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