public class HtmlPreviewConverter extends Object implements ExternalConverter
Modifier and Type | Field and Description |
---|---|
protected static Boolean |
canUseOOo2Html |
protected static Boolean |
canUsePDF2Html |
protected static ConversionService |
cs |
Constructor and Description |
---|
HtmlPreviewConverter() |
Modifier and Type | Method and Description |
---|---|
BlobHolder |
convert(BlobHolder blobHolder,
Map<String,Serializable> parameters)
Main method to handle the real Conversion Job.
|
protected static boolean |
getCanUseOOo2Html() |
protected static boolean |
getCanUsePDF2Html() |
protected static ConversionService |
getConversionService() |
protected List<String> |
getConverterChain(String srcMT) |
void |
init(ConverterDescriptor descriptor)
Initializes the Converter.
|
ConverterCheckResult |
isConverterAvailable()
Checks if the converter is available.
|
protected static ConversionService cs
protected static Boolean canUsePDF2Html
protected static Boolean canUseOOo2Html
public HtmlPreviewConverter()
protected static ConversionService getConversionService()
protected static boolean getCanUsePDF2Html()
protected static boolean getCanUseOOo2Html()
protected List<String> getConverterChain(String srcMT)
public BlobHolder convert(BlobHolder blobHolder, Map<String,Serializable> parameters) throws ConversionException
Converter
Returned BlobHolder
must implement CachableBlobHolder
, otherwise result won't be cached.
convert
in interface Converter
ConversionException
public void init(ConverterDescriptor descriptor)
Converter
This can be used to retrieve some configuration information from the XMap Descriptor.
public ConverterCheckResult isConverterAvailable()
ExternalConverter
isConverterAvailable
in interface ExternalConverter
Copyright © 2016 Nuxeo SA. All rights reserved.