org.nuxeo.ecm.core.convert.cache
Class SimpleCachableBlobHolder
java.lang.Object
org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
org.nuxeo.ecm.core.convert.cache.SimpleCachableBlobHolder
- All Implemented Interfaces:
- BlobHolder, CachableBlobHolder
- Direct Known Subclasses:
- ZipCachableBlobHolder
public class SimpleCachableBlobHolder
- extends SimpleBlobHolder
- implements CachableBlobHolder
Cachable implementation of the SimpleBlobHolder
.
- Author:
- tiry
Method Summary |
void |
addDirectoryToList(java.io.File directory,
java.lang.String prefix)
|
void |
load(java.lang.String path)
Reloads the BlobHolder from a file. |
java.lang.String |
persist(java.lang.String basePath)
Persists the blobHolder to disk. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleCachableBlobHolder
public SimpleCachableBlobHolder()
SimpleCachableBlobHolder
public SimpleCachableBlobHolder(Blob blob)
SimpleCachableBlobHolder
public SimpleCachableBlobHolder(java.util.List<Blob> blobs)
SimpleCachableBlobHolder
public SimpleCachableBlobHolder(java.lang.String path)
load
public void load(java.lang.String path)
- Description copied from interface:
CachableBlobHolder
- Reloads the
BlobHolder
from a file.
- Specified by:
load
in interface CachableBlobHolder
addDirectoryToList
public void addDirectoryToList(java.io.File directory,
java.lang.String prefix)
throws ConversionException
- Throws:
ConversionException
persist
public java.lang.String persist(java.lang.String basePath)
throws java.lang.Exception
- Description copied from interface:
CachableBlobHolder
- Persists the blobHolder to disk.
- Specified by:
persist
in interface CachableBlobHolder
- Parameters:
basePath
- the base path (existing directory) as determined by the caller
- Returns:
- the full path of the newly created FileSystem resource
- Throws:
java.lang.Exception
Copyright © 2010 Nuxeo SAS. All Rights Reserved.