public interface CachableBlobHolder extends BlobHolder
BlobHolder
that can be cached.
A BlobHolder can be cached if it can be persisted to disk and reloaded from a file. Converters need to return BlobHolders that implement this interface to make the result cachable.
Modifier and Type | Method and Description |
---|---|
void |
load(String path)
Reloads the
BlobHolder from a file. |
String |
persist(String basePath)
Persists the blobHolder to disk.
|
getBlob, getBlobs, getFilePath, getHash, getModificationDate, getProperties, getProperty, setBlob
String persist(String basePath) throws Exception
basePath
- the base path (existing directory) as determined by the callerException
void load(String path)
BlobHolder
from a file.path
- Copyright © 2013 Nuxeo SA. All Rights Reserved.