public interface BlobStore
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.lang.String |
getBlobId(@NotNull java.lang.String reference)
Returns the blobId that referred by the given binary reference.
|
long |
getBlobLength(java.lang.String blobId)
Get the length of the blob.
|
java.io.InputStream |
getInputStream(java.lang.String blobId)
Returns a new stream for given blobId.
|
@Nullable java.lang.String |
getReference(@NotNull java.lang.String blobId)
Returns a secure reference to blob referred by blobid, or
null if no such
reference is available. |
int |
readBlob(java.lang.String blobId,
long pos,
byte[] buff,
int off,
int length)
Read a number of bytes from a blob.
|
java.lang.String |
writeBlob(java.io.InputStream in)
Write a blob from an input stream.
|
java.lang.String |
writeBlob(java.io.InputStream in,
BlobOptions options)
Write a blob from an input stream with specified options.
|
java.lang.String writeBlob(java.io.InputStream in)
throws java.io.IOException
in - the input streamjava.io.IOExceptionjava.lang.String writeBlob(java.io.InputStream in,
BlobOptions options)
throws java.io.IOException
in - the input stream to writeoptions - the options to usejava.io.IOExceptionint readBlob(java.lang.String blobId,
long pos,
byte[] buff,
int off,
int length)
throws java.io.IOException
blobId - the blob idpos - the position within the blobbuff - the target byte arrayoff - the offset within the target arraylength - the number of bytes to readjava.io.IOExceptionlong getBlobLength(java.lang.String blobId)
throws java.io.IOException
blobId - the blob idjava.io.IOExceptionjava.io.InputStream getInputStream(java.lang.String blobId)
throws java.io.IOException
read
return the same sequence of bytes as long as neither call throws
an exception.blobId - the blob idjava.io.IOException@Nullable
@Nullable java.lang.String getBlobId(@NotNull
@NotNull java.lang.String reference)
null if the reference is invalid, for example if it
points to a blob that does not exist.reference - binary referencenull@Nullable
@Nullable java.lang.String getReference(@NotNull
@NotNull java.lang.String blobId)
null if no such
reference is available.blobId - blobId referring the blob for which reference is requirednullCopyright © 2010 - 2023 Adobe. All Rights Reserved