public class ZipCachableBlobHolder extends SimpleCachableBlobHolder
Constructor and Description |
---|
ZipCachableBlobHolder() |
ZipCachableBlobHolder(Blob zipBlob) |
Modifier and Type | Method and Description |
---|---|
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
getModificationDate, getProperties, getProperty
getFilePath, getHash, setBlob
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFilePath, getHash, getModificationDate, getProperties, getProperty, setBlob
public ZipCachableBlobHolder()
public ZipCachableBlobHolder(Blob zipBlob)
public Blob getBlob(String path) throws IOException, MimetypeNotFoundException, MimetypeDetectionException, ConversionException
public Blob getBlob() throws ClientException
BlobHolder
getBlob
in interface BlobHolder
getBlob
in class SimpleBlobHolder
ClientException
public List<Blob> getBlobs() throws ClientException
BlobHolder
getBlobs
in interface BlobHolder
getBlobs
in class SimpleBlobHolder
ClientException
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
Copyright © 2015 Nuxeo SA. All rights reserved.