public interface BlobProvider
Blob
s, which knows how to read and write them.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this blob provider and releases resources that may be held by it.
|
void |
initialize(String blobProviderId,
Map<String,String> properties)
Initializes the blob provider.
|
Blob |
readBlob(BlobManager.BlobInfo blobInfo)
Reads a
Blob from storage. |
String |
writeBlob(Blob blob,
Document doc)
Writes a
Blob to storage and returns information about it. |
void initialize(String blobProviderId, Map<String,String> properties) throws IOException
blobProviderId
- the blob provider id for this binary managerproperties
- initialization propertiesIOException
void close()
Blob readBlob(BlobManager.BlobInfo blobInfo) throws IOException
Blob
from storage.blobInfo
- the blob informationIOException
String writeBlob(Blob blob, Document doc) throws IOException
Blob
to storage and returns information about it.
Called to store a user-created blob.
blob
- the blobdoc
- the document to which this blob belongsIOException
Copyright © 2015 Nuxeo SA. All rights reserved.