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 String
key
Deprecated.protected MimetypeRegistry
mimeTypeService
Deprecated.since 11.1.protected Blob
zipBlob
Deprecated.-
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 Blob
createIndexBlob()
Deprecated.Blob
getBlob()
Deprecated.Returns the Blob held inside the object.Blob
getBlob(String path)
Deprecated.List<Blob>
getBlobs()
Deprecated.Returns a list of blobs, if holder implementation supports multiple blobs.String
getMimeType(File file)
Deprecated.MimetypeRegistry
getMimeTypeService()
Deprecated.since 11.1.void
load(String path)
Deprecated.Reloads theBlobHolder
from a file.String
persist(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)
withMimetypeRegistry
instead.
-
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:BlobHolder
Returns the Blob held inside the object.- Specified by:
getBlob
in interfaceBlobHolder
- Overrides:
getBlob
in classSimpleBlobHolder
-
getBlobs
public List<Blob> getBlobs()
Deprecated.Description copied from interface:BlobHolder
Returns a list of blobs, if holder implementation supports multiple blobs.- Specified by:
getBlobs
in interfaceBlobHolder
- Overrides:
getBlobs
in classSimpleBlobHolder
-
load
public void load(String path) throws IOException
Deprecated.Description copied from interface:CachableBlobHolder
Reloads theBlobHolder
from a file.- Specified by:
load
in interfaceCachableBlobHolder
- Overrides:
load
in classSimpleCachableBlobHolder
- Throws:
IOException
-
persist
public String persist(String basePath) throws IOException
Deprecated.Description copied from interface:CachableBlobHolder
Persists the blobHolder to disk.- Specified by:
persist
in interfaceCachableBlobHolder
- Overrides:
persist
in 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)
withMimetypeRegistry
instead.- Throws:
ConversionException
-
createIndexBlob
protected Blob createIndexBlob()
Deprecated.
-
-