Package 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
Cachable implementation of the
SimpleBlobHolder.- Author:
- tiry
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
blobs, creationDate -
Constructor Summary
ConstructorsConstructorDescriptionSimpleCachableBlobHolder(List<Blob> blobs) SimpleCachableBlobHolder(Blob blob) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirectoryToList(File directory, String prefix) voidReloads theBlobHolderfrom a file.protected voidorderIndexPageFirst(List<Blob> blobs) Rearrange blobs to have smallest index.html page as the first blob.Persists the blobHolder to disk.Methods inherited from class org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
getBasePath, getBlob, getBlobs, getModificationDate, getProperties, getProperty, init, setBlobMethods inherited from class org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
getFilePath, getHash, getMD5DigestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.core.api.blobholder.BlobHolder
getBlob, getBlobs, getFilePath, getHash, getModificationDate, getProperties, getProperty, setBlob
-
Constructor Details
-
SimpleCachableBlobHolder
public SimpleCachableBlobHolder() -
SimpleCachableBlobHolder
-
SimpleCachableBlobHolder
-
SimpleCachableBlobHolder
-
-
Method Details
-
load
Description copied from interface:CachableBlobHolderReloads theBlobHolderfrom a file.- Specified by:
loadin interfaceCachableBlobHolder- Throws:
IOException
-
addDirectoryToList
- Throws:
IOException
-
persist
Description copied from interface:CachableBlobHolderPersists the blobHolder to disk.- Specified by:
persistin interfaceCachableBlobHolder- Parameters:
basePath- the base path (existing directory) as determined by the caller- Returns:
- the full path of the newly created FileSystem resource
- Throws:
IOException
-
orderIndexPageFirst
Rearrange blobs to have smallest index.html page as the first blob.- Since:
- 5.7.1
-