Package org.apache.jackrabbit.oak.plugins.blob

Examples of org.apache.jackrabbit.oak.plugins.blob.BlobStoreBlob


     */
    @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;
    }
View Full Code Here


     *
     * @param blobId the blobId of the blob.
     * @return the blob.
     */
    public Blob getBlobFromBlobId(String blobId){
        return new BlobStoreBlob(blobStore, blobId);
    }
View Full Code Here

    }

    @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");
    }
View Full Code Here

        } catch (IOException e) {
            throw e;
        } catch (Exception e) {
            throw new IOException("Could not write blob", e);
        }
        return new BlobStoreBlob(blobStore, id);
    }
View Full Code Here

     * @return the blob.
     */
    @Override
    @Nonnull
    public Blob getBlob(String blobId) {
        return new BlobStoreBlob(blobStore, blobId);
    }
View Full Code Here

    }

    @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");
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.blob.BlobStoreBlob

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.