return ByteRange.parse(rangeHeader);
}
@Override
public void delete(BlobKey... blobKeys) {
DeleteBlobRequest request = new DeleteBlobRequest();
for (BlobKey blobKey : blobKeys) {
request.addBlobKey(blobKey.getKeyString());
}
if (request.blobKeySize() == 0) {
return;
}
byte[] responseBytes;
try {
responseBytes = ApiProxy.makeSyncCall(PACKAGE, "DeleteBlob", request.toByteArray());
} catch (ApiProxy.ApplicationException ex) {
switch (BlobstoreServiceError.ErrorCode.valueOf(ex.getApplicationError())) {
case INTERNAL_ERROR:
throw new BlobstoreFailureException("An internal blobstore error occured.");
default: