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, setAdaptedDocument
public ConversionService getConversionService()
public void setDefaultPreviewFieldXPath(String xPath)
public List<Blob> getPreviewBlobs() throws PreviewException
PreviewException
public List<Blob> getPreviewBlobs(String xpath) throws PreviewException
PreviewException
public String getMimeType(File file) throws ConversionException
ConversionException
public MimetypeRegistry getMimeTypeService() throws ConversionException
ConversionException
public void cleanup()
public boolean cachable()
public boolean hasBlobToPreview() throws PreviewException
HtmlPreviewAdapter
PreviewException
Copyright © 2015 Nuxeo SA. All rights reserved.