public class ZipCachableBlobHolder extends SimpleCachableBlobHolder
Modifier and Type | Field and Description |
---|---|
protected String |
key |
protected MimetypeRegistry |
mimeTypeService |
protected Blob |
zipBlob |
blobs, creationDate
Constructor and Description |
---|
ZipCachableBlobHolder() |
ZipCachableBlobHolder(Blob zipBlob) |
Modifier and Type | Method and Description |
---|---|
protected Blob |
createIndexBlob() |
Blob |
getBlob()
Returns the Blob held inside the object.
|
Blob |
getBlob(String path) |
List<Blob> |
getBlobs()
Returns a list of blobs, if holder implementation supports multiple blobs.
|
String |
getMimeType(File file) |
MimetypeRegistry |
getMimeTypeService() |
void |
load(String path)
Reloads the
BlobHolder from a file. |
String |
persist(String basePath)
Persists the blobHolder to disk.
|
addDirectoryToList, orderIndexPageFirst
getBasePath, getModificationDate, getProperties, getProperty, init
getFilePath, getHash, getMD5Digest, setBlob
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFilePath, getHash, getModificationDate, getProperties, getProperty, setBlob
protected MimetypeRegistry mimeTypeService
public ZipCachableBlobHolder()
public ZipCachableBlobHolder(Blob zipBlob)
public Blob getBlob(String path) throws IOException, MimetypeNotFoundException, MimetypeDetectionException, ConversionException
public Blob getBlob()
BlobHolder
getBlob
in interface BlobHolder
getBlob
in class SimpleBlobHolder
public List<Blob> getBlobs()
BlobHolder
getBlobs
in interface BlobHolder
getBlobs
in class SimpleBlobHolder
public void load(String path) throws IOException
CachableBlobHolder
BlobHolder
from a file.load
in interface CachableBlobHolder
load
in class SimpleCachableBlobHolder
IOException
public String persist(String basePath) throws IOException
CachableBlobHolder
persist
in interface CachableBlobHolder
persist
in class SimpleCachableBlobHolder
basePath
- the base path (existing directory) as determined by the callerIOException
public String getMimeType(File file) throws ConversionException
ConversionException
public MimetypeRegistry getMimeTypeService() throws ConversionException
ConversionException
protected Blob createIndexBlob()
Copyright © 2015 Nuxeo SA. All rights reserved.