public class SimpleCachableBlobHolder extends SimpleBlobHolder implements CachableBlobHolder
SimpleBlobHolder
.Constructor and Description |
---|
SimpleCachableBlobHolder() |
SimpleCachableBlobHolder(Blob blob) |
SimpleCachableBlobHolder(List<Blob> blobs) |
SimpleCachableBlobHolder(String path) |
Modifier and Type | Method and Description |
---|---|
void |
addDirectoryToList(File directory,
String prefix) |
void |
load(String path)
Reloads the
BlobHolder from a file. |
String |
persist(String basePath)
Persists the blobHolder to disk.
|
getBlob, getBlobs, getModificationDate, getProperties, getProperty
getFilePath, getHash, setBlob
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBlob, getBlobs, getFilePath, getHash, getModificationDate, getProperties, getProperty, setBlob
public SimpleCachableBlobHolder()
public SimpleCachableBlobHolder(Blob blob)
public SimpleCachableBlobHolder(String path)
public void load(String path) throws IOException
CachableBlobHolder
BlobHolder
from a file.load
in interface CachableBlobHolder
IOException
public void addDirectoryToList(File directory, String prefix) throws IOException
IOException
public String persist(String basePath) throws IOException
CachableBlobHolder
persist
in interface CachableBlobHolder
basePath
- the base path (existing directory) as determined by the callerIOException
Copyright © 2015 Nuxeo SA. All rights reserved.