public class BasicReadOnlyBlobStore extends Object implements org.apache.jackrabbit.oak.spi.blob.BlobStore
Constructor and Description |
---|
BasicReadOnlyBlobStore() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getBlobId(@NotNull String reference) |
long |
getBlobLength(String blobId) |
InputStream |
getInputStream(String blobId) |
String |
getReference(@NotNull String blobId) |
int |
readBlob(String blobId,
long pos,
byte[] buff,
int off,
int length) |
String |
writeBlob(InputStream in) |
String |
writeBlob(InputStream in,
org.apache.jackrabbit.oak.spi.blob.BlobOptions options)
Ignores the options provided and delegates to
writeBlob(InputStream) . |
public String writeBlob(InputStream in) throws IOException
writeBlob
in interface org.apache.jackrabbit.oak.spi.blob.BlobStore
IOException
public String writeBlob(InputStream in, org.apache.jackrabbit.oak.spi.blob.BlobOptions options) throws IOException
writeBlob(InputStream)
.writeBlob
in interface org.apache.jackrabbit.oak.spi.blob.BlobStore
in
- the input stream to writeoptions
- the options to useIOException
public int readBlob(String blobId, long pos, byte[] buff, int off, int length) throws IOException
readBlob
in interface org.apache.jackrabbit.oak.spi.blob.BlobStore
IOException
public long getBlobLength(String blobId) throws IOException
getBlobLength
in interface org.apache.jackrabbit.oak.spi.blob.BlobStore
IOException
public InputStream getInputStream(String blobId) throws IOException
getInputStream
in interface org.apache.jackrabbit.oak.spi.blob.BlobStore
IOException
public String getBlobId(@NotNull @NotNull String reference)
getBlobId
in interface org.apache.jackrabbit.oak.spi.blob.BlobStore
public String getReference(@NotNull @NotNull String blobId)
getReference
in interface org.apache.jackrabbit.oak.spi.blob.BlobStore
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.