throws S3ServiceException
{
// Sanity check to ensure all packages are based on signed URLs
for (int i = 0; i < downloadPackages.length; i++) {
if (!downloadPackages[i].isSignedDownload()) {
throw new S3ServiceException(
"The downloadObjects(DownloadPackage[]) method may only be used with " +
"download packages based on signed URLs. Download package " + (i + 1) +
" of " + downloadPackages.length + " is not based on a signed URL");
}
}