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, orderIndexPageFirstgetBasePath, getModificationDate, getProperties, getProperty, initgetFilePath, getHash, getMD5Digest, setBlobclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFilePath, getHash, getModificationDate, getProperties, getProperty, setBlobprotected MimetypeRegistry mimeTypeService
public ZipCachableBlobHolder()
public ZipCachableBlobHolder(Blob zipBlob)
public Blob getBlob(String path) throws IOException, MimetypeNotFoundException, MimetypeDetectionException, ConversionException
public Blob getBlob()
BlobHoldergetBlob in interface BlobHoldergetBlob in class SimpleBlobHolderpublic List<Blob> getBlobs()
BlobHoldergetBlobs in interface BlobHoldergetBlobs in class SimpleBlobHolderpublic void load(String path) throws IOException
CachableBlobHolderBlobHolder from a file.load in interface CachableBlobHolderload in class SimpleCachableBlobHolderIOExceptionpublic String persist(String basePath) throws IOException
CachableBlobHolderpersist in interface CachableBlobHolderpersist in class SimpleCachableBlobHolderbasePath - the base path (existing directory) as determined by the callerIOExceptionpublic String getMimeType(File file) throws ConversionException
ConversionExceptionpublic MimetypeRegistry getMimeTypeService() throws ConversionException
ConversionExceptionprotected Blob createIndexBlob()
Copyright © 2019 Nuxeo. All rights reserved.