1344134513461347134813491350135113521353
*/ @Override public Blob getBlob(String reference) { String blobId = blobStore.getBlobId(reference); if(blobId != null){ return new BlobStoreBlob(blobStore, blobId); } LOG.debug("No blobId found matching reference [{}]", reference); return null; }
1357135813591360136113621363
* * @param blobId the blobId of the blob. * @return the blob. */ public Blob getBlobFromBlobId(String blobId){ return new BlobStoreBlob(blobStore, blobId); }
704705706707708709710711712713
} @Override public Blob readBlob(String blobId) { if (blobStore != null) { return new BlobStoreBlob(blobStore, blobId); } throw new IllegalStateException("Attempt to read external blob with blobId [" + blobId + "] " + "without specifying BlobStore"); }
1204120512061207120812091210
} catch (IOException e) { throw e; } catch (Exception e) { throw new IOException("Could not write blob", e); } return new BlobStoreBlob(blobStore, id); }
1216121712181219122012211222
* @return the blob. */ @Override @Nonnull public Blob getBlob(String blobId) { return new BlobStoreBlob(blobStore, blobId); }
399400401402403404405406407408
} @Override public Blob readBlob(String reference) { if(blobStore != null){ return new BlobStoreBlob(blobStore, reference); } throw new IllegalStateException("Attempt to read external reference ["+reference+"] " + "without specifying BlobStore"); }