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 IOException
basePath
- the base path (existing directory) as determined by the callerIOException
void load(String path) throws IOException
BlobHolder
from a file.path
- IOException
Copyright © 2015 Nuxeo SA. All rights reserved.