573574575576577578579580581582
} @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"); }
1286128712881289129012911292
return asDocumentRootBuilder(builder).reset(); } @Override public BlobStoreBlob createBlob(InputStream inputStream) throws IOException { return new BlobStoreBlob(blobStore, blobStore.writeBlob(inputStream)); }
1300130113021303130413051306130713081309
*/ @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; }
1313131413151316131713181319
* * @param blobId the blobId of the blob. * @return the blob. */ public Blob getBlobFromBlobId(String blobId){ return new BlobStoreBlob(blobStore, blobId); }
552553554555556557558559560561
1235123612371238123912401241
1249125012511252125312541255125612571258
1262126312641265126612671268
675676677678679680681682683684