Class ZipCachableBlobHolder
- java.lang.Object
-
- org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
-
- org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
-
- org.nuxeo.ecm.core.convert.cache.SimpleCachableBlobHolder
-
- org.nuxeo.ecm.platform.convert.plugins.ZipCachableBlobHolder
-
- All Implemented Interfaces:
BlobHolder,CachableBlobHolder
@Deprecated public class ZipCachableBlobHolder extends SimpleCachableBlobHolder
Deprecated.since 11.5, unusedCachable implementation of a zip file.- Author:
- Laurent Doguin
-
-
Field Summary
Fields Modifier and Type Field Description protected StringkeyDeprecated.protected MimetypeRegistrymimeTypeServiceDeprecated.since 11.1.protected BlobzipBlobDeprecated.-
Fields inherited from class org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
blobs, creationDate
-
-
Constructor Summary
Constructors Constructor Description ZipCachableBlobHolder()Deprecated.ZipCachableBlobHolder(Blob zipBlob)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected BlobcreateIndexBlob()Deprecated.BlobgetBlob()Deprecated.Returns the Blob held inside the object.BlobgetBlob(String path)Deprecated.List<Blob>getBlobs()Deprecated.Returns a list of blobs, if holder implementation supports multiple blobs.StringgetMimeType(File file)Deprecated.MimetypeRegistrygetMimeTypeService()Deprecated.since 11.1.voidload(String path)Deprecated.Reloads theBlobHolderfrom a file.Stringpersist(String basePath)Deprecated.Persists the blobHolder to disk.-
Methods inherited from class org.nuxeo.ecm.core.convert.cache.SimpleCachableBlobHolder
addDirectoryToList, orderIndexPageFirst
-
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
getBasePath, getModificationDate, getProperties, getProperty, init, setBlob
-
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
getFilePath, getHash, getMD5Digest
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.core.api.blobholder.BlobHolder
getFilePath, getHash, getModificationDate, getProperties, getProperty, setBlob
-
-
-
-
Field Detail
-
zipBlob
protected Blob zipBlob
Deprecated.
-
mimeTypeService
@Deprecated protected MimetypeRegistry mimeTypeService
Deprecated.since 11.1. UseFramework.getService(Class)withMimetypeRegistryinstead.
-
key
protected String key
Deprecated.
-
-
Constructor Detail
-
ZipCachableBlobHolder
public ZipCachableBlobHolder()
Deprecated.
-
ZipCachableBlobHolder
public ZipCachableBlobHolder(Blob zipBlob)
Deprecated.
-
-
Method Detail
-
getBlob
public Blob getBlob(String path) throws IOException, MimetypeNotFoundException, MimetypeDetectionException, ConversionException
Deprecated.
-
getBlob
public Blob getBlob()
Deprecated.Description copied from interface:BlobHolderReturns the Blob held inside the object.- Specified by:
getBlobin interfaceBlobHolder- Overrides:
getBlobin classSimpleBlobHolder
-
getBlobs
public List<Blob> getBlobs()
Deprecated.Description copied from interface:BlobHolderReturns a list of blobs, if holder implementation supports multiple blobs.- Specified by:
getBlobsin interfaceBlobHolder- Overrides:
getBlobsin classSimpleBlobHolder
-
load
public void load(String path) throws IOException
Deprecated.Description copied from interface:CachableBlobHolderReloads theBlobHolderfrom a file.- Specified by:
loadin interfaceCachableBlobHolder- Overrides:
loadin classSimpleCachableBlobHolder- Throws:
IOException
-
persist
public String persist(String basePath) throws IOException
Deprecated.Description copied from interface:CachableBlobHolderPersists the blobHolder to disk.- Specified by:
persistin interfaceCachableBlobHolder- Overrides:
persistin classSimpleCachableBlobHolder- Parameters:
basePath- the base path (existing directory) as determined by the caller- Returns:
- the full path of the newly created FileSystem resource
- Throws:
IOException
-
getMimeType
public String getMimeType(File file) throws ConversionException
Deprecated.- Throws:
ConversionException
-
getMimeTypeService
@Deprecated public MimetypeRegistry getMimeTypeService() throws ConversionException
Deprecated.since 11.1. UseFramework.getService(Class)withMimetypeRegistryinstead.- Throws:
ConversionException
-
createIndexBlob
protected Blob createIndexBlob()
Deprecated.
-
-