Class ZipPreviewer
- java.lang.Object
-
- org.nuxeo.ecm.platform.preview.adapter.ZipPreviewer
-
- All Implemented Interfaces:
MimeTypePreviewer
public class ZipPreviewer extends Object implements MimeTypePreviewer
Previewer for Zip blobs.It sanitizes each zip entry if needed.
- Since:
- 11.5
-
-
Field Summary
Fields Modifier and Type Field Description protected static Set<String>
HTML_MIME_TYPES
protected static String
SANITIZE_ZIP_PREVIEW
-
Constructor Summary
Constructors Constructor Description ZipPreviewer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Blob>
getPreview(Blob blob, DocumentModel dm)
protected boolean
isSanitizable(Blob blob)
protected Blob
sanitize(Blob blob)
-
-
-
Field Detail
-
SANITIZE_ZIP_PREVIEW
protected static final String SANITIZE_ZIP_PREVIEW
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPreview
public List<Blob> getPreview(Blob blob, DocumentModel dm) throws PreviewException
- Specified by:
getPreview
in interfaceMimeTypePreviewer
- Throws:
PreviewException
-
isSanitizable
protected boolean isSanitizable(Blob blob)
-
-