public class ConverterBasedHtmlPreviewAdapter extends AbstractHtmlPreviewAdapter
| Constructor and Description |
|---|
ConverterBasedHtmlPreviewAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cachable() |
void |
cleanup() |
ConversionService |
getConversionService() |
String |
getMimeType(File file) |
MimetypeRegistry |
getMimeTypeService() |
List<Blob> |
getPreviewBlobs() |
List<Blob> |
getPreviewBlobs(String xpath) |
boolean |
hasBlobToPreview()
Check if the document holds some blobs that are suitable for preview
|
void |
setDefaultPreviewFieldXPath(String xPath) |
getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewURL, getFilePreviewURL, setAdaptedDocumentpublic ConversionService getConversionService()
public void setDefaultPreviewFieldXPath(String xPath)
public List<Blob> getPreviewBlobs() throws PreviewException
PreviewExceptionpublic List<Blob> getPreviewBlobs(String xpath) throws PreviewException
PreviewExceptionpublic String getMimeType(File file) throws ConversionException
ConversionExceptionpublic MimetypeRegistry getMimeTypeService() throws ConversionException
ConversionExceptionpublic void cleanup()
public boolean cachable()
public boolean hasBlobToPreview()
throws PreviewException
HtmlPreviewAdapterPreviewExceptionCopyright © 2015 Nuxeo SA. All rights reserved.